Re: [PATCH 12/54] perf tools: Enable config raw and numeric events
From: Jiri Olsa
Date: Fri Feb 12 2016 - 09:11:13 EST
On Fri, Feb 05, 2016 at 02:01:37PM +0000, Wang Nan wrote:
> 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
> ...
> # Samples: 124 of event 'cycles'
> 46.61% 0.00% swapper [kernel.vmlinux] [k] cpu_startup_entry
> 41.26% 0.00% swapper [kernel.vmlinux] [k] start_secondary
> ...
> # Samples: 91 of event 'evtx'
> ...
> 93.76% 0.00% swapper [kernel.vmlinux] [k] cpu_startup_entry
> |
> ---cpu_startup_entry
> |
> |--66.63%--call_cpuidle
> | cpuidle_enter
> | |
> ...
>
> Signed-off-by: Wang Nan <wangnan0@xxxxxxxxxx>
> Cc: He Kuang <hekuang@xxxxxxxxxx>
> Cc: Alexei Starovoitov <ast@xxxxxxxxxx>
> Cc: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
> Cc: Jiri Olsa <jolsa@xxxxxxxxxx>
> Cc: Masami Hiramatsu <masami.hiramatsu.pt@xxxxxxxxxxx>
> Cc: Namhyung Kim <namhyung@xxxxxxxxxx>
> Cc: Zefan Li <lizefan@xxxxxxxxxx>
> Cc: pi3orama@xxxxxxx
> ---
> tools/perf/util/parse-events.c | 3 ++-
> tools/perf/util/parse-events.y | 10 ++++++----
> 2 files changed, 8 insertions(+), 5 deletions(-)
please add new tests into parse-events tests, however for this one:
Acked-by: Jiri Olsa <jolsa@xxxxxxxxxx>
thanks,
jirka