per-instruction instruction counts on linux?
If I run my program under perf
on linux, it will easily give me the total count of instructions executed. Is it possible to somehow (maybe also with perf
but that’s not a requirement) get a count of instructions executed, broken down by instruction? e.g. it might look like this (but with presumably many more instructions and much higher numbers)
Why perf starts to multiplex events even if there are more counters than events?
I was reading about event multiplexing in perf. In my understanding, multiplexing only happens when there is more events than counters. However, tracking the following 3 events already causes multiplexing: