selftests/powerpc: Add checks for transactional FPUs in signal contexts
authorCyril Bur <cyrilbur@gmail.com>
Fri, 23 Sep 2016 06:18:21 +0000 (16:18 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 4 Oct 2016 09:33:14 +0000 (20:33 +1100)
commit5ca4ffcd5cee39af6b0b3ccfea59ebfffb5c2ad5
treecd28250646fa15099fc6ce26f6c8ba404cda0014
parentf10d4424b20c101f3b4dd599819083e1e4b5a3fa
selftests/powerpc: Add checks for transactional FPUs in signal contexts

If a thread receives a signal while transactional the kernel creates a
second context to show the transactional state of the process. This
test loads some known values and waits for a signal and confirms that
the expected values are in the signal context.

Signed-off-by: Cyril Bur <cyrilbur@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/tm/Makefile
tools/testing/selftests/powerpc/tm/tm-signal-context-chk-fpu.c [new file with mode: 0644]