diff options
author | Jakub Kicinski <kuba@kernel.org> | 2025-05-02 18:18:56 -0700 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2025-05-06 11:04:58 +0200 |
commit | 8f0ae19346ce1cadf17f5ea6b01e7b6eb815e2fd (patch) | |
tree | 73236520deefbcac4b77715cc57af708a4b63f59 /tools/perf/scripts/python/syscall-counts.py | |
parent | 90131a9b064b9e8a41d919a5ff43470b5a3faf0d (diff) |
selftests: net: exit cleanly on SIGTERM / timeout
ksft runner sends 2 SIGTERMs in a row if a test runs out of time.
Handle this in a similar way we handle SIGINT - cleanup and stop
running further tests.
Because we get 2 signals we need a bit of logic to ignore
the subsequent one, they come immediately one after the other
(due to commit 9616cb34b08e ("kselftest/runner.sh: Propagate SIGTERM
to runner child")).
This change makes sure we run cleanup (scheduled defer()s)
and also print a stack trace on SIGTERM, which doesn't happen
by default. Tests occasionally hang in NIPA and it's impossible
to tell what they are waiting from or doing.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Link: https://patch.msgid.link/20250503011856.46308-1-kuba@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions