selftests/powerpc: Add test for forking inside transaction
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.
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-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
@@ -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
@@ -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