andikleen / pmu-tools

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

toplev: Lots of failures with kernel rejecting uncore events #450

Closed andikleen closed 1 year ago

andikleen commented 1 year ago

e.g. running the test suite on SKL client with a recent kernel leads to "mismatched events" messages.

Appears to be due to some weirdness (regression) with uncore events failing in the kernel.

perf stat -x\; -vv -o /dev/null -e 'msr/tsc/,uncore_arb/event=0x81,umask=0x1/' -o /dev/null sleep 1 echo 2 perf stat -x\; -v -o /dev/null -e 'uncore_arb/event=0x81,umask=0x1/' -o /dev/null sleep 1

The second works, the first fails with -22 error

For now the workaround is to use --no-uncore until we find a reliable workaround.

andikleen commented 1 year ago

Doesn't happen anymore, but not sure what the fix was