andikleen / pmu-tools

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

perf reordering software events leading to "input corruption" errors #467

Closed andikleen closed 11 months ago

andikleen commented 11 months ago

Some perf versions a4c7d7c502b935f around 6.3 reorder software events, printing WARNING: events were regrouped to match PMU This breaks toplev.

There's a fix pending for upstream perf that fixes it.

In some cases it can be avoid with --tune "KEEP_UNREF = True"

In toplev it could be avoided by not generating dummy events, not using emulation-faults to separate identical events (but use --no-merge instead) and adding software etc. events always at the end. This would need some restructuring in the scheduler.

andikleen commented 11 months ago

There were multiple problems here: