Reputation: 25763
I’m analyzing some weird program run time behaviour with perf
, with some help on IRC. By default perf stat
only lists a few counters, and not those of interest, so there is an annoying ping-pong of “include this counter in the output” and me adding it to the list of arguments passed via -e
and pasting the result.
Is there a way to make perf stat
simply emit all counters, so that one report is all the experts need to help me?
Upvotes: 2
Views: 5475
Reputation: 788
Short answer: no.
Rationale: The performance monitor counter (PMU) unit of a CPU is implemented by a number of additional registers so, that, for some chosen event the designed register is incremented. Now, the number of registers is limited, because adding register to CPU is very "costly" thing. So, there are many more events then available PMU registers to count them.
Bottom line, you have to choose the subset of CPU events to monitor using CPU PMU unit.
Upvotes: 2