selftests/powerpc: Add test to check if TAR is corrupted
PATCH v4 1/1 selftests/powerpc: Add test to check if TAR is corrupted
If the transaction is aborted, the TAR should be rolled back to the checkpointed value before the transaction began. The value written to the TAR when the transaction is suspended should only remain there if the transaction completes successfully.
Signed-off-by Rashmica Gupta <[email protected]>
---
This must be run before tm-signal-stack as after this test is run a reboot is required -- changed the order of the tests in the Makefile.
tools/testing/selftests/powerpc/tm/.gitignore | 1 + tools/testing/selftests/powerpc/tm/Makefile | 2 +- tools/testing/selftests/powerpc/tm/tm-tar.c | 92 +++++++++++++++++++++++++++ 3 files changed, 94 insertions(+), 1 deletion(-) create mode 100644 tools/testing/selftests/powerpc/tm/tm-tar.c
tools/testing/selftests/powerpc/tm/.gitignore +1 -0
@@ -4,3 +4,4 @@ tm-signal-msr-resv tm-signal-stack tm-fork tm-dscr +tm-tar
tools/testing/selftests/powerpc/tm/Makefile +1 -1
@@ -1,4 +1,4 @@ -TEST_PROGS := tm-resched-dscr tm-syscall tm-signal-msr-resv tm-fork tm-dscr tm-signal-stack +TEST_PROGS := tm-resched-dscr tm-syscall tm-signal-msr-resv tm-fork tm-dscr tm-tar tm-signal-stack all: $(TEST_PROGS)
tools/testing/selftests/powerpc/tm/tm-tar.c new file +92 -0
92 lines not on this page · raw message
Signature · 1 line
2.5.0