perf record or perf top commands fail with an "Invalid Argument" error when using the --cpu option on Intel hybrid platforms
Issue
- When using the
perf recordorperf topcommands with the--cpuoption on an Intel Hybrid Platform, the commands fail with an "Invalid Argument" error.
# lscpu | grep "^Model name:"
Model name: 13th Gen Intel(R) CoreT i9-13900HK
# perf record --cpu 1
WARNING: A requested CPU in '1' is not supported by PMU 'cpu_atom' (CPUs 12-19) for event 'cycles:P'
Error:
The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (cpu_atom/cycles/P).
/bin/dmesg | grep -i perf may provide additional information.
# perf top --cpu 1 --stdio
Error:
The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (cpu_atom/cycles/P).
/bin/dmesg | grep -i perf may provide additional information.
Environment
- Red Hat Enterprise Linux 9.5
- perf
- Intel Hybrid Platform (Raptor Lake)
13th Gen Intel(R) CoreT i9-13900HK13th Gen Intel(R) Core(TM) i5-13500E
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.