2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 22:53:55 +08:00
linux-next/tools/perf/scripts/python
Paolo Bonzini 6745d8ea82 perf script: Add stackcollapse.py script
Add stackcollapse.py script as an example of parsing call chains, and
also of using optparse to access command line options.

The flame graph tools include a set of scripts that parse output from
various tools (including "perf script"), remove the offsets in the
function and collapse each stack to a single line.  The website also
says "perf report could have a report style [...] that output folded
stacks directly, obviating the need for stackcollapse-perf.pl", so here
it is.

This script is a Python rewrite of stackcollapse-perf.pl, using the perf
scripting interface to access the perf data directly from Python.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Brendan Gregg <bgregg@netflix.com>
Link: http://lkml.kernel.org/r/1460467573-22989-1-git-send-email-pbonzini@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2016-06-21 13:18:35 -03:00
..
bin perf script: Add stackcollapse.py script 2016-06-21 13:18:35 -03:00
Perf-Trace-Util perf python scripting: Append examples to err msg about audit-libs-python 2016-02-12 11:30:27 -03:00
call-graph-from-postgresql.py perf tools: Add example call-graph script 2015-08-21 12:32:40 -03:00
check-perf-trace.py perf script: Add callchain to generic and tracepoint events 2014-07-16 17:57:33 -03:00
compaction-times.py perf scripts python: Add new compaction-times script 2015-08-28 14:53:40 -03:00
event_analyzing_sample.py perf script python: Correct handler check and spelling errors 2012-08-09 13:26:19 -03:00
export-to-postgresql.py perf script: Update export-to-postgresql to support callchain export 2016-05-06 13:00:55 -03:00
failed-syscalls-by-pid.py perf script: Add callchain to generic and tracepoint events 2014-07-16 17:57:33 -03:00
futex-contention.py perf script: Add callchain to generic and tracepoint events 2014-07-16 17:57:33 -03:00
net_dropmonitor.py perf script: Add callchain to generic and tracepoint events 2014-07-16 17:57:33 -03:00
netdev-times.py perf script: Add callchain to generic and tracepoint events 2014-07-16 17:57:33 -03:00
sched-migration.py perf script: Add callchain to generic and tracepoint events 2014-07-16 17:57:33 -03:00
sctop.py perf script: Add callchain to generic and tracepoint events 2014-07-16 17:57:33 -03:00
stackcollapse.py perf script: Add stackcollapse.py script 2016-06-21 13:18:35 -03:00
stat-cpi.py perf script: Add stat-cpi.py script 2016-01-06 20:11:16 -03:00
syscall-counts-by-pid.py perf script: Add callchain to generic and tracepoint events 2014-07-16 17:57:33 -03:00
syscall-counts.py perf script: Add callchain to generic and tracepoint events 2014-07-16 17:57:33 -03:00