diff options
author | Ian Rogers <irogers@google.com> | 2024-10-25 12:21:08 -0700 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2024-10-28 09:32:58 -0700 |
commit | 553d5efeb341f2f814f937e0658ed7d22f625662 (patch) | |
tree | 16d7c1730aa3a3755decb30fe9ba6660aad16a5c /tools/perf/util/trace-event-scripting.c | |
parent | 94d1a913bdc423073d5f58fcd8caaf7ee9f57ebc (diff) | |
download | linux-553d5efeb341f2f814f937e0658ed7d22f625662.tar.gz linux-553d5efeb341f2f814f937e0658ed7d22f625662.tar.bz2 linux-553d5efeb341f2f814f937e0658ed7d22f625662.zip |
perf test: Add a signal handler to kill forked child processes
If the `perf test` process is killed the child tests continue running
and may run indefinitely. Propagate SIGINT (ctrl-C) and SIGTERM (kill)
signals to the running child processes so that they terminate when the
parent is killed.
Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Colin Ian King <colin.i.king@gmail.com>
Cc: Howard Chu <howardchu95@gmail.com>
Cc: Weilin Wang <weilin.wang@intel.com>
Cc: James Clark <james.clark@linaro.org>
Cc: Ilya Leoshkevich <iii@linux.ibm.com>
Cc: Thomas Richter <tmricht@linux.ibm.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Dapeng Mi <dapeng1.mi@linux.intel.com>
Cc: Athira Jajeev <atrajeev@linux.vnet.ibm.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Veronika Molnarova <vmolnaro@redhat.com>
Link: https://lore.kernel.org/r/20241025192109.132482-10-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions