aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-script.c
diff options
context:
space:
mode:
authorIan Rogers <[email protected]>2024-10-25 19:21:00 +0000
committerNamhyung Kim <[email protected]>2024-10-28 16:32:57 +0000
commit5ce42b5de461c3154f61a023b191dd6b77ee66c0 (patch)
treea4f49cc3673311c4de2bbb44232f22e02be99021 /tools/perf/builtin-script.c
parentperf disasm: Fix not cleaning up disasm_line in symbol__disassemble_raw() (diff)
downloadkernel-5ce42b5de461c3154f61a023b191dd6b77ee66c0.tar.gz
kernel-5ce42b5de461c3154f61a023b191dd6b77ee66c0.zip
tools subcmd: Add non-waitpid check_if_command_finished()
Using waitpid can cause stdout/stderr of the child process to be lost. Use Linux's /prod/<pid>/status file to determine if the process has reached the zombie state. Use the 'status' file rather than 'stat' to avoid issues around skipping the process name. Tested-by: James Clark <[email protected]> Signed-off-by: Ian Rogers <[email protected]> Cc: Colin Ian King <[email protected]> Cc: Howard Chu <[email protected]> Cc: Weilin Wang <[email protected]> Cc: Ilya Leoshkevich <[email protected]> Cc: Thomas Richter <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Dapeng Mi <[email protected]> Cc: Athira Jajeev <[email protected]> Cc: Michael Petlan <[email protected]> Cc: Veronika Molnarova <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/perf/builtin-script.c')
0 files changed, 0 insertions, 0 deletions