aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorAdrian Hunter <[email protected]>2015-09-25 13:15:45 +0000
committerArnaldo Carvalho de Melo <[email protected]>2015-09-28 19:59:14 +0000
commitf14445ee72c59f32aa5cbf4d0f0330a5f62a752d (patch)
tree6498ddc2acfef1a06f1b5cf10606b8f1171dbc9e /tools/perf/util/scripting-engines/trace-event-python.c
parentperf intel-pt: Move branch filter logic (diff)
downloadkernel-f14445ee72c59f32aa5cbf4d0f0330a5f62a752d.tar.gz
kernel-f14445ee72c59f32aa5cbf4d0f0330a5f62a752d.zip
perf intel-pt: Support generating branch stack
Add support for generating branch stack context for PT samples. The decoder reports a configurable number of branches as branch context for each sample. Internally it keeps track of them by using a simple sliding window. We also flush the last branch buffer on each sample to avoid overlapping intervals. This is useful for: - Reporting accurate basic block edge frequencies through the perf report branch view - Using with --branch-history to get the wider context of samples - Other users of LBRs Also the Documentation is updated. Examples: Record with Intel PT: perf record -e intel_pt//u ls Branch stacks are used by default if synthesized so: perf report --itrace=ile is the same as: perf report --itrace=ile -b Branch history can be requested also: perf report --itrace=igle --branch-history Based-on-patch-by: Andi Kleen <[email protected]> Signed-off-by: Adrian Hunter <[email protected]> Cc: Jiri Olsa <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions