milos-linux/tools/perf/scripts/python/bin
Anubhav Shelat 23e0a63c6d perf script: force stdin for flamegraph in live mode
Currently, running "perf script flamegraph -a -F 99 sleep 1" should
produce flamegraph.html containing the flamegraph. Howevever, it gives a
segmentation fault.

This is caused because the flamegraph.py script is
supposed to take as input the output of "perf record", which should be
in stdin. This would require passing "-i -" to flamegraph.py. However,
the "flamegraph-report" script causes "perf script" command to take the
"-i -" option instead of flamegraph.py, which causes no problem for
"perf script", but causes a seg fault since flamegraph.py has no input
file. To fix this I added the "-i -" option directly to the
flamegraph-report script to ensure flamegraph.py gets input from stdin.

Signed-off-by: Anubhav Shelat <ashelat@redhat.com>
Tested-by: Michael Petlan <mpetlan@redhat.com>
Link: https://lore.kernel.org/r/20250131145704.3164542-2-ashelat@redhat.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
2025-02-03 19:49:10 -08:00
..
compaction-times-record
compaction-times-report
event_analyzing_sample-record
event_analyzing_sample-report
export-to-postgresql-record
export-to-postgresql-report
export-to-sqlite-record
export-to-sqlite-report
failed-syscalls-by-pid-record
failed-syscalls-by-pid-report
flamegraph-record
flamegraph-report perf script: force stdin for flamegraph in live mode 2025-02-03 19:49:10 -08:00
futex-contention-record
futex-contention-report
gecko-record
gecko-report perf scripts python: Add support for input args in gecko script 2023-08-24 14:39:43 -03:00
intel-pt-events-record
intel-pt-events-report
mem-phys-addr-record
mem-phys-addr-report
net_dropmonitor-record
net_dropmonitor-report
netdev-times-record
netdev-times-report
powerpc-hcalls-record
powerpc-hcalls-report
sched-migration-record
sched-migration-report
sctop-record
sctop-report
stackcollapse-record
stackcollapse-report
syscall-counts-by-pid-record
syscall-counts-by-pid-report
syscall-counts-record
syscall-counts-report
task-analyzer-record
task-analyzer-report