diff options
author | Mark Brown <broonie@kernel.org> | 2023-06-21 02:36:06 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2023-06-21 12:07:18 +0100 |
commit | 833b0f07b915f40db352063df0e13bc91fb0f42f (patch) | |
tree | c64e24dd593686e3678ad076409698a2f49a5561 /tools/testing | |
parent | cb5aa637943857f7f937a51d1e621dbe925f9f67 (diff) | |
download | linux-stable-833b0f07b915f40db352063df0e13bc91fb0f42f.tar.gz linux-stable-833b0f07b915f40db352063df0e13bc91fb0f42f.tar.bz2 linux-stable-833b0f07b915f40db352063df0e13bc91fb0f42f.zip |
kselftest/arm64: Log signal code and address for unexpected signals
If we get an unexpected signal during a signal test log a bit more data to
aid diagnostics.
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230620-arm64-selftest-log-wrong-signal-v1-1-3fe29bdaaf38@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'tools/testing')
-rw-r--r-- | tools/testing/selftests/arm64/signal/test_signals_utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/selftests/arm64/signal/test_signals_utils.c b/tools/testing/selftests/arm64/signal/test_signals_utils.c index 40be8443949d..0dc948db3a4a 100644 --- a/tools/testing/selftests/arm64/signal/test_signals_utils.c +++ b/tools/testing/selftests/arm64/signal/test_signals_utils.c @@ -249,7 +249,8 @@ static void default_handler(int signum, siginfo_t *si, void *uc) fprintf(stderr, "-- Timeout !\n"); } else { fprintf(stderr, - "-- RX UNEXPECTED SIGNAL: %d\n", signum); + "-- RX UNEXPECTED SIGNAL: %d code %d address %p\n", + signum, si->si_code, si->si_addr); } default_result(current, 1); } |