]> Git Repo - linux.git/commit
perf tools: Implement branch_type event parameter
authorAndi Kleen <[email protected]>
Wed, 12 Oct 2016 21:02:06 +0000 (14:02 -0700)
committerArnaldo Carvalho de Melo <[email protected]>
Mon, 24 Oct 2016 14:07:35 +0000 (11:07 -0300)
commitac12f6764c5097e791cd44f10b8943b40f44bfe7
treee3a8ca10680e74baf7e16804b9ce50fff4e030f2
parent84ee74affccc93b02dee5a986dfe214f4eaa08d3
perf tools: Implement branch_type event parameter

It can be useful to specify branch type state per event, for example if
we want to collect both software trace points and last branch PMU events
in a single collection. Currently this doesn't work because the software
trace point errors out with -b.

There was already a branch-type parameter to configure branch sample
types per event in the parser, but it was stubbed out. This patch
implements the necessary plumbing to actually enable it.

Now:

  $ perf record -e sched:sched_switch,cpu/cpu-cycles,branch_type=any/ ...

works.

Signed-off-by: Andi Kleen <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/evsel.c
tools/perf/util/evsel.h
tools/perf/util/parse-branch-options.c
tools/perf/util/parse-branch-options.h
tools/perf/util/parse-events.c
This page took 0.055734 seconds and 4 git commands to generate.