linux/tools/perf/scripts/python/bin
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
..
compaction-times-record perf scripts python: Add new compaction-times script 2015-08-28 14:53:40 -03:00
compaction-times-report perf scripts python: Add new compaction-times script 2015-08-28 14:53:40 -03:00
event_analyzing_sample-record perf scripts: Add event_analyzing_sample-record/report 2012-09-17 13:11:15 -03:00
event_analyzing_sample-report perf scripts: Add event_analyzing_sample-record/report 2012-09-17 13:11:15 -03:00
export-to-postgresql-record perf script: Add Python script to export to postgresql 2014-10-29 10:32:49 -02:00
export-to-postgresql-report perf tools: Add call information to Python export 2014-11-03 18:10:06 -03:00
failed-syscalls-by-pid-record perf scripts: Fallback to syscalls:* when raw_syscalls:* is not available 2014-06-25 12:26:56 -03:00
failed-syscalls-by-pid-report perf script: Finish the rename from trace to script 2010-12-25 11:29:02 -02:00
futex-contention-record perf trace scripting: remove system-wide param from shell scripts 2010-11-10 08:08:20 -06:00
futex-contention-report perf script: Finish the rename from trace to script 2010-12-25 11:29:02 -02:00
net_dropmonitor-record perf script: Add drop monitor script 2011-09-29 16:41:37 -03:00
net_dropmonitor-report perf script: Add drop monitor script 2011-09-29 16:41:37 -03:00
netdev-times-record perf trace scripting: remove system-wide param from shell scripts 2010-11-10 08:08:20 -06:00
netdev-times-report perf script: Finish the rename from trace to script 2010-12-25 11:29:02 -02:00
sched-migration-record perf trace scripting: remove system-wide param from shell scripts 2010-11-10 08:08:20 -06:00
sched-migration-report perf script: Finish the rename from trace to script 2010-12-25 11:29:02 -02:00
sctop-record perf scripts: Fallback to syscalls:* when raw_syscalls:* is not available 2014-06-25 12:26:56 -03:00
sctop-report perf script: Finish the rename from trace to script 2010-12-25 11:29:02 -02:00
stackcollapse-record perf script: Add stackcollapse.py script 2016-06-21 13:18:35 -03:00
stackcollapse-report perf script: Add stackcollapse.py script 2016-06-21 13:18:35 -03:00
syscall-counts-by-pid-record perf scripts: Fallback to syscalls:* when raw_syscalls:* is not available 2014-06-25 12:26:56 -03:00
syscall-counts-by-pid-report perf script: Finish the rename from trace to script 2010-12-25 11:29:02 -02:00
syscall-counts-record perf scripts: Fallback to syscalls:* when raw_syscalls:* is not available 2014-06-25 12:26:56 -03:00
syscall-counts-report perf script: Finish the rename from trace to script 2010-12-25 11:29:02 -02:00