]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
selftests/powerpc: Add thread based stress test for DSCR sysfs interfaces
authorMichael Ellerman <mpe@ellerman.id.au>
Sun, 7 Jun 2015 09:25:16 +0000 (19:25 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 7 Jun 2015 09:38:18 +0000 (19:38 +1000)
commitaf0be08ee6ab83666f2cb3c56285cf7a312eaeab
tree86826308e0d8edeb093e3a55a13dd5eabf095478
parentebd5858c904b1c795f1511758a7ac043afd44438
selftests/powerpc: Add thread based stress test for DSCR sysfs interfaces

This patch adds a test to update the system wide DSCR value repeatedly
and then verifies that any thread on any given CPU on the system must be
able to see the same DSCR value whether its is being read through the
problem state based SPR or the privilege state based SPR.

Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/dscr/Makefile
tools/testing/selftests/powerpc/dscr/dscr_sysfs_thread_test.c [new file with mode: 0644]