twx-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 perf flamegraph: Use /bin/bash for report and record scripts 2020-05-05 16:35:32 -03:00
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 perf scripts python: Add command execution for gecko script 2023-07-28 19:01:16 -03:00
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 perf scripts python: intel-pt-events.py: Add branches to script 2021-05-25 10:07:17 -03:00
intel-pt-events-report perf scripts python: intel-pt-events.py: Add branches to script 2021-05-25 10:07:17 -03:00
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 perf scripts python: Fix passing arguments to stackcollapse report 2021-09-10 11:45:19 -03:00
syscall-counts-by-pid-record
syscall-counts-by-pid-report
syscall-counts-record
syscall-counts-report
task-analyzer-record perf script: Introduce task analyzer python script 2022-12-14 11:24:31 -03:00
task-analyzer-report perf script: Introduce task analyzer python script 2022-12-14 11:24:31 -03:00