]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/powerpc: Add checks for transactional GPRs in signal contexts
authorCyril Bur <cyrilbur@gmail.com>
Fri, 23 Sep 2016 06:18:20 +0000 (16:18 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 4 Oct 2016 09:33:12 +0000 (20:33 +1100)
commit58c0de06a7460063b866902a15ee6904e4cd9e7b
tree1ba4364831f7a9e797d34c797d1cde69ef976e7d
parent09a5bf2efab91cef4bdcf0e4d776d8a6df235430
selftests/powerpc: Add checks for transactional GPRs 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-gpr.c [new file with mode: 0644]
tools/testing/selftests/powerpc/tm/tm-signal.S [new file with mode: 0644]