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

From: Andi Kleen
Date: Thu Mar 04 2021 - 20:10:21 EST


> 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