lkml.org 
[lkml]   [2020]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] perf tools: Add missing Intel CPU events to parser
On Tue, Mar 24, 2020 at 05:04:43PM +0200, Adrian Hunter wrote:
> perf list expects CPU events to be parseable by name, e.g.
>
> # perf list | grep el-capacity-read
> el-capacity-read OR cpu/el-capacity-read/ [Kernel PMU event]
>
> But the event parser does not recognize them that way, e.g.
>
> # perf test -v "Parse event"
> <SNIP>
> running test 54 'cycles//u'
> running test 55 'cycles:k'
> running test 0 'cpu/config=10,config1,config2=3,period=1000/u'
> running test 1 'cpu/config=1,name=krava/u,cpu/config=2/u'
> running test 2 'cpu/config=1,call-graph=fp,time,period=100000/,cpu/config=2,call-graph=no,time=0,period=2000/'
> running test 3 'cpu/name='COMPLEX_CYCLES_NAME:orig=cycles,desc=chip-clock-ticks',period=0x1,event=0x2/ukp'
> -> cpu/event=0,umask=0x11/
> -> cpu/event=0,umask=0x13/
> -> cpu/event=0x54,umask=0x1/
> failed to parse event 'el-capacity-read:u,cpu/event=el-capacity-read/u', err 1, str 'parser error'
> event syntax error: 'el-capacity-read:u,cpu/event=el-capacity-read/u'
> \___ parser error test child finished with 1
> ---- end ----
> Parse event definition strings: FAILED!
>
> Fix by adding missing Intel CPU events to the event parser.
> Missing events were found by using:
>
> grep -r EVENT_ATTR_STR arch/x86/events/intel/core.c
>
> Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>

Acked-by: Jiri Olsa <jolsa@redhat.com>

thanks,
jirka

\
 
 \ /
  Last update: 2020-03-25 11:34    [W:0.504 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site