Skip to content

Commit ead1c35

Browse files
brooniectmarinas
authored andcommitted
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 <[email protected]> Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent 7368deb commit ead1c35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/arm64/fp/fp-stress.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ static void child_output(struct child_data *child, uint32_t events,
223223
static void child_tickle(struct child_data *child)
224224
{
225225
if (child->output_seen && !child->exited)
226-
kill(child->pid, SIGUSR2);
226+
kill(child->pid, SIGUSR1);
227227
}
228228

229229
static void child_stop(struct child_data *child)

0 commit comments

Comments
 (0)