mirror of
https://github.com/torvalds/linux.git
synced 2026-04-28 11:32:28 -04:00
selftests/powerpc: Test cp_abort during context switch
Test that performing a copy paste sequence in userspace on P9 does not result in a leak of the copy into the paste of another process. This is based on Anton Blanchard's context_switch benchmarking code. It sets up two processes tied to the same CPU, one which copies and one which pastes. The paste should never succeed and the test fails if it does. This is a test for commit, "8a64904 powerpc: Add support for userspace P9 copy paste." Patch created with much assistance from Michael Neuling <mikey@neuling.org> Signed-off-by: Chris Smart <chris@distroguy.com> Reviewed-by: Cyril Bur <cyrilbur@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
committed by
Michael Ellerman
parent
e44c1b15cf
commit
438517ec78
1
tools/testing/selftests/powerpc/context_switch/.gitignore
vendored
Normal file
1
tools/testing/selftests/powerpc/context_switch/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
cp_abort
|
||||
Reference in New Issue
Block a user