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(-)
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); }
--- base-commit: 44c026a73be8038f03dbdeef028b642880cf1511 change-id: 20230620-arm64-selftest-log-wrong-signal-cd8c34ae5e4f
Best regards,
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
linux-kselftest-mirror@lists.linaro.org