diff options
author | Ian Rogers <irogers@google.com> | 2024-10-25 12:21:05 -0700 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2024-10-28 09:32:58 -0700 |
commit | a6fffc60940a903ebcd70d44f047277ba5188225 (patch) | |
tree | d40ab96308136a58e424002f2be2ae7ef0ccc1fe /tools/perf/util/trace-event-scripting.c | |
parent | 2532be3d219d8819e59dc52a5ead4696b8354a82 (diff) | |
download | linux-a6fffc60940a903ebcd70d44f047277ba5188225.tar.gz linux-a6fffc60940a903ebcd70d44f047277ba5188225.tar.bz2 linux-a6fffc60940a903ebcd70d44f047277ba5188225.zip |
perf test: Add a signal handler around running a test
Add a signal handler around running a test. If a signal occurs during
the test a siglongjmp unwinds the stack and output is flushed. The
global run_test_jmp_buf is either unique per forked child or not
shared during sequential execution.
Tested-by: James Clark <james.clark@linaro.org>
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: 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-7-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