Skip to contentSkip to conversation

selftests/powerpc: Add test to check is DSCR is corrupted.

PATCH Superseded Rashmica Gupta 1 participant 1 message Dec 3, 2015

Subsystems (2)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 selftests/powerpc: Add test to check is DSCR is corrupted.

If the transaction is aborted, the DSCR should be rolled back to the checkpointed value before the transaction began. The value written to the DSCR when transaction was suspended should only persist if the transaction is successful.

---

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-dscr.c  | 95 +++++++++++++++++++++++++++
 3 files changed, 97 insertions(+), 1 deletion(-)
 create mode 100644 tools/testing/selftests/powerpc/tm/tm-dscr.c
tools/testing/selftests/powerpc/tm/.gitignore +1 -0
index d0c7c97e9b13..76eae258feeb 100644
@@ -3,3 +3,4 @@ tm-syscall
 tm-signal-msr-resv
 tm-signal-stack
 tm-fork
+tm-dscr
tools/testing/selftests/powerpc/tm/Makefile +1 -1
index 56cbb3c839a1..dc368f789afa 100644
@@ -1,4 +1,4 @@
-TEST_PROGS := tm-resched-dscr tm-syscall tm-signal-msr-resv tm-fork tm-signal-stack
+TEST_PROGS := tm-resched-dscr tm-syscall tm-signal-msr-resv tm-fork tm-dscr tm-signal-stack
 
 all: $(TEST_PROGS)
 
tools/testing/selftests/powerpc/tm/tm-dscr.c new file +95 -0

95 lines not on this page · raw message

Signature · 1 line
2.5.0