andikleen / pmu-tools

Intel PMU profiling tools
GNU General Public License v2.0
1.98k stars 331 forks source link

incorrect event-counter scheduling on Icelake #414

Closed aayasin closed 2 years ago

aayasin commented 2 years ago

The events CYCLE_ACTIVITY.STALLS_L* are restricted to counters 0-3 starting Icelake PMU. Latest toplev with TMA 4.3 support scheduled these two events twice in two groups:

One group schedules them on incorrect counters as highlighted in figure! toplev-sched-icl

andikleen commented 2 years ago

Do you mean because they're in the end of the group? perf doesn't require the input to be the same order as what is put into the final counters, the kernel fixes it up. So I think that's ok.