I'm counting events with
perf stat -e. I consulted my processor manufacturer's manual and found the event I'm interested in.
However, not only does it have the event number, but it also has a list of unit masks and their descriptions. What are they and how do I indicate to perf which I want? I know how to measure an event, but I don't know how to use unit masks.
Update: here's the description from the manual:
NBPMCx1E0 CPU to DRAM Requests to Target Node
This event counts all DRAM reads and writes generated by cores on the local node to the targeted node in the coherent fabric. This counter can be used to observe processor data affinity in NUMA aware operating systems.
UnitMask Description 7 From Local node to Node 7 6 From Local node to Node 6 5 From Local node to Node 5 4 From Local node to Node 4 3 From Local node to Node 3 2 From Local node to Node 2 1 From Local node to Node 1 0 From Local node to Node 0