mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-27 22:53:55 +08:00
6745d8ea82
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> |
||
---|---|---|
.. | ||
bin | ||
Perf-Trace-Util | ||
call-graph-from-postgresql.py | ||
check-perf-trace.py | ||
compaction-times.py | ||
event_analyzing_sample.py | ||
export-to-postgresql.py | ||
failed-syscalls-by-pid.py | ||
futex-contention.py | ||
net_dropmonitor.py | ||
netdev-times.py | ||
sched-migration.py | ||
sctop.py | ||
stackcollapse.py | ||
stat-cpi.py | ||
syscall-counts-by-pid.py | ||
syscall-counts.py |