pmu-tools icon indicating copy to clipboard operation
pmu-tools copied to clipboard

toplev: Event in input does not match schedule. Input corruption

Open bitcharmer opened this issue 2 years ago • 6 comments

Pmu-tools is a real godsend and thank you for sharing this gem with the world! I'm experiencing issues going to level 3 and lower for my CLX platform.

kernel: 4.18.0-348.2 (RHEL) pmu-tools version: master (95be316e3369f372cdfb8870f60831ef5795ad7b) cpu: Vendor ID: GenuineIntel CPU family: 6 Model: 85 Model name: Intel(R) Core(TM) i9-10980XE CPU @ 3.00GHz Stepping: 7

id as: GenuineIntel-6-55 <- this didn't work after I have downloaded event mappings because toplev would still want to download before running as if the ones downloaded were incorrect, so I had to: ./event_download GenuineIntel-6-55-7 to get toplev to even start. This might be important?

The error:

> ./toplev.py --level 3 --core C17
^Cwarning: unparseable perf output
;
Event in input does not match schedule (cpu/event=0xa6,umask=0x4/ vs expected cpu/event=0x9c,umask=0x1/ [pmu:cpu/ind:0/tit:/int:0.000000+2]).
41350876726;;cpu/event=0xa6,umask=0x4/;3682074528;6.25;;
Input corruption

Thanks!

bitcharmer avatar Feb 15 '22 08:02 bitcharmer

For the download:

Does it work when you revert 7a51c65 ? I might have broken something here.

For the second one please run with --perf-output p --perf and attach "p" as well as the full output.

andikleen avatar Feb 19 '22 04:02 andikleen

Also you could try if it helps to run a newer perf built from https://mirrors.edge.kernel.org/pub/linux/kernel/tools/perf/v5.15.0/

(you can override with export PERF=/path/to/new/perf)

andikleen avatar Feb 19 '22 04:02 andikleen

Hi Andi,

Sorry it took so long, got dragged into other issues. I checked out https://github.com/andikleen/pmu-tools/commit/7a51c654fae196e4ba550c8019314403a36abf25 but sadly that didn't work:

python3 ./toplev.py --level 3 --core C17 ^CEvent in input does not match schedule (cpu/event=0xc2,umask=0x2/ vs expected cpu/event=0x9c,umask=0x1/ [pmu:cpu/ind:0/tit:/int:0.000000+1]). 9501133510;;cpu/event=0xc2,umask=0x2/;620015099;6.25;; Input corruption

Given that we are on RHEL 8 (perf for 5.x kernels probably won't work at all) and quite restricted on getting access to external resources it might take me some time to test the updated perf tool. Please don't close this issue :) I'll keep you updated.

Thanks

bitcharmer avatar Mar 24 '22 12:03 bitcharmer

The 5.15.0 perf worked just fine. Thank you!

bitcharmer avatar Mar 28 '22 06:03 bitcharmer

Let's keep it open for now because RHEL8 should be supported directly.

andikleen avatar Mar 28 '22 13:03 andikleen

In that case what might be useful here is that I compiled perf 5.15 against a newer RH kernel: 4.18.0.361 which should be available for general public from around mid May, so this solution hasn't been tested against the latest GA which is 348.

bitcharmer avatar Mar 31 '22 16:03 bitcharmer