kselftest/arm64: Count SIGUSR2 deliveries in FP stress tests
authorMark Brown <broonie@kernel.org>
Mon, 29 Aug 2022 15:44:50 +0000 (16:44 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 6 Sep 2022 17:31:41 +0000 (18:31 +0100)
commit05a5980f7ff50e6c18a9f38ca49521180a333fdf
tree2bd4b8ba28c4eb7096c22a1e573380e7cf2e951b
parent9e40e6272353ea0fde654b548c96e8bbab2fed9f
kselftest/arm64: Count SIGUSR2 deliveries in FP stress tests

Currently the floating point stress tests mostly support testing that the
data they are checking can be disrupted from a signal handler triggered by
SIGUSR1. This is not properly implemented for all the tests and in testing
is frequently modified to just handle the signal without corrupting data in
order to ensure that signal handling does not corrupt data. Directly support
this usage by installing a SIGUSR2 handler which simply counts the signal
delivery.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220829154452.824870-3-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/fp/asm-offsets.h
tools/testing/selftests/arm64/fp/fpsimd-test.S
tools/testing/selftests/arm64/fp/sve-test.S
tools/testing/selftests/arm64/fp/za-test.S