Re: [PATCH] perf pmu: Validate raw event with sysfs exported format bits

From: Jin, Yao
Date: Thu Mar 04 2021 - 23:32:13 EST


Hi Andi,

On 3/5/2021 9:10 AM, Andi Kleen wrote:
Single event:

# ./perf stat -e cpu/r031234/ -a -- sleep 1
WARNING: event config '31234' not valid (bits 16 17 not supported by kernel)!

Just noticed that again. Can you please print the original event as
string in the message? While it's obvious with rXXX which one it is,
it may not be obvious with offsetted fields (like umask=0x121212),
and hard to find in a long command line.

-Andi


Sometime the event name is NULL. In v2, if the event name is not NULL, I will print the event name.

Thanks
Jin Yao