aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stackcollapse.py
Commit message (Collapse)AuthorAgeFilesLines
* perf script stackcollapse: Remove reference to the perl interpreterArnaldo Carvalho de Melo2016-06-221-2/+0
| | | | | | | | | | | | It is ignored and this is actually a python script, not a perl one. Reported-by: Brendan Gregg <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Milian Wolff <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paolo Bonzini <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
* perf script: Add stackcollapse.py scriptPaolo Bonzini2016-06-211-0/+127
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 <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Brendan Gregg <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>