Skip to contentSkip to conversation

selftests/powerpc: Add test for forking inside transaction

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

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 selftests/powerpc: Add test for forking inside transaction

This test does a fork syscall inside a transaction. Basic sniff test to see if we can enter the kernel during a transaction.

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

42 lines not on this page · raw message

Signature · 1 line
2.5.0