]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kselftest/arm64: Test signal handler state modification in fp-stress
authorMark Brown <broonie@kernel.org>
Thu, 7 Nov 2024 01:39:25 +0000 (01:39 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 7 Nov 2024 18:02:14 +0000 (18:02 +0000)
commitead1c35ce3b3c766443a82b56ee343cfe7ee8305
treef89adcf08fa9bc1f3a7874731099ae086b176840
parent7368debf275aa2419365ce47da00922ca51c6094
kselftest/arm64: Test signal handler state modification in fp-stress

Currently in fp-stress we test signal delivery to the test threads by
sending SIGUSR2 which simply counts how many signals are delivered. The
test programs now also all have a SIGUSR1 handler which for the threads
doing userspace testing additionally modifies the floating point register
state in the signal handler, verifying that when we return the saved
register state is restored from the signal context as expected. Switch over
to triggering that to validate that we are restoring as expected.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20241107-arm64-fp-stress-irritator-v2-6-c4b9622e36ee@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/fp/fp-stress.c