Message ID | 20230620-arm64-selftest-log-wrong-signal-v1-1-3fe29bdaaf38@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 833b0f07b915f40db352063df0e13bc91fb0f42f |
Headers | show |
Series | kselftest/arm64: Log signal code and address for unexpected signals | expand |
On Wed, 21 Jun 2023 02:36:06 +0100, Mark Brown wrote: > If we get an unexpected signal during a signal test log a bit more data to > aid diagnostics. > > Applied to arm64 (for-next/kselftest), thanks! [1/1] kselftest/arm64: Log signal code and address for unexpected signals https://git.kernel.org/arm64/c/833b0f07b915
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); }
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> --- tools/testing/selftests/arm64/signal/test_signals_utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- base-commit: 44c026a73be8038f03dbdeef028b642880cf1511 change-id: 20230620-arm64-selftest-log-wrong-signal-cd8c34ae5e4f Best regards,