The perf command using the stat option used to be working well on Fedora (F43 Workstation) but since some weeks ago fails i.e. :
$ perf stat -d ls
Error:
No supported events found.
The “ls” command used is just an example. The actual executable doesn’t matter .
I could reproduce this change in behaviour for both F-WS 42 and F-WS 43 and both on an Intel laptop and AMD Desktop. I suppose the uptdate to the 6.19 kernel series is the culprit but can not verify it. Neither running the command as root nor setting /proc/sys/kernel/perf_event_paranoid to -1 helps.
Odd on my main development machine perf stat works.
But on any of my other systems it fails as you are seeing.
I wonder if there is something that needs to be configured to allow perf to work?
So far I cannot find that “thing” ion my working system.
FYI you can get a bit more info about the erro like this:
$ perf stat -v ls
Using CPUID GenuineIntel-6-9E-A
Control descriptor is not initialized
Error:
No supported events found.
# and in an ARM VM
$ perf stat -v ls
Using CPUID 0x00000000610f0000
Control descriptor is not initialized
Error:
No supported events found.