lkml.org 
[lkml]   [2016]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 12/55] perf tools: Enable config raw and numeric events
Em Fri, Feb 19, 2016 at 12:08:47PM -0300, Arnaldo Carvalho de Melo escreveu:
> Em Fri, Feb 19, 2016 at 11:44:00AM +0000, Wang Nan escreveu:
> > This patch allows setting config terms for raw and numeric events.
> > For example:
> >
> > # perf stat -e cycles/name=cyc/ ls
> > ...
> > 1821108 cyc
> > ...
> >
> > # perf stat -e r6530160/name=event/ ls
> > ...
> > 1103195 event
> > ...
> >
> > # perf record -e cycles -e 4:0x6530160/name=evtx,call-graph=fp/ -a sleep 1
> > ...
> > # perf report --stdio
>
> Nice stuff, but I'm investigating now why I'm getting this:
>
> [acme@jouet linux]$ make O=/tmp/build/perf -C tools/perf install-bin
> make: Entering directory '/home/acme/git/linux/tools/perf'
> BUILD: Doing 'make -j4' parallel build
> BISON /tmp/build/perf/util/parse-events-bison.c
> util/parse-events.y:436.23-38: error: symbol opt_event_config is used, but is not defined as a token and has no rules
> PE_VALUE ':' PE_VALUE opt_event_config
> ^^^^^^^^^^^^^^^^

Ok, this is because I deferred the patch that introduces this
'opt_event_config' thing, that is buried in a BPF patch, when it
could've probably have stood out in a separate patch, trying that now.

- Arnaldo

\
 
 \ /
  Last update: 2016-02-19 16:21    [W:4.609 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site