3 ms·
Perf can. But you need to massage it a bit. Out of the box , perf uses a bunch of generic performance counter which maybe not be the best. Intel cpu's have a a
by soulbadguy 3y ago
Perf can. But you need to massage it a bit. Out of the box , perf uses a bunch of generic performance counter which maybe not be the best.
Intel cpu's have a a collection of "precisise" events which record the exact originating/offending instructions. If you use those it should fix your problem
Pmu-tool by default uses precise events when available
- vient 3y agoOh, I did not know that perf by default may use some uncore events that are less precise than some Intel-specific events. Thanks for the info!
- soulbadguy 3y agoYou might want to look at https://icl.utk.edu/papi/ https://icl.utk.edu/papi/ . It's a generic library which abstract the details of specific cpu arch and aims to provide a single unify view of performance counters. I think somewhere in there you can see how perf translate counters to intel (or AMD) specific one.