OSDN Git Service

selftest/powerpc: Add test for sigreturn in transaction
authorLaurent Dufour <ldufour@linux.vnet.ibm.com>
Mon, 22 Aug 2016 16:53:02 +0000 (18:53 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 13 Mar 2018 04:10:14 +0000 (15:10 +1100)
commit9c96c932871efeabe82fcfdc952f35810484b510
treec431632c39faf803dd98ee339492d501dd596c9f
parent47d703e1d55f068c737c0c9f0c18f080fb08242b
selftest/powerpc: Add test for sigreturn in transaction

Ensure that kernel is throwing away the suspended transaction when
sigreturn() is called otherwise it if fails to restore the signal
frame's TM SPRS.

Signed-off-by: Laurent Dufour <ldufour@linux.vnet.ibm.com>
Reviewed-by: Cyril Bur <cyrilbur@gmail.com>
[mpe: Add have_htm() check, minor formatting, add SPDX tag]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/tm/Makefile
tools/testing/selftests/powerpc/tm/tm-sigreturn.c [new file with mode: 0644]