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

2021-03-15 Thread Arnaldo Carvalho de Melo
Em Wed, Mar 10, 2021 at 12:38:02PM +0100, Jiri Olsa escreveu: > On Wed, Mar 10, 2021 at 01:11:38PM +0800, Jin Yao wrote: > > Warnings are reported for invalid bits. > > > > Co-developed-by: Jiri Olsa > > Signed-off-by: Jin Yao > > Reviewed-by: Jiri Olsa Thanks, applied. - Arnaldo

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

2021-03-10 Thread Jiri Olsa
On Wed, Mar 10, 2021 at 01:11:38PM +0800, Jin Yao wrote: > A raw PMU event (eventsel+umask) in the form of rNNN is supported > by perf but lacks of checking for the validity of raw encoding. > > For example, bit 16 and bit 17 are not valid on KBL but perf doesn't > report warning when encoding

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

2021-03-09 Thread Jin Yao
A raw PMU event (eventsel+umask) in the form of rNNN is supported by perf but lacks of checking for the validity of raw encoding. For example, bit 16 and bit 17 are not valid on KBL but perf doesn't report warning when encoding with these bits. Before: # ./perf stat -e cpu/r031234/ -a --