selftests/powerpc: Add ptrace tests for Protection Key registers
authorThiago Jung Bauermann <bauerman@linux.ibm.com>
Fri, 25 May 2018 02:11:44 +0000 (23:11 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 28 May 2018 08:46:35 +0000 (18:46 +1000)
commit1f7256e7dddef49acf9f6c9fe3f93522a8a2a4c2
treebc12ecd181faefb0160cbd59a1edeb4ee096b84d
parent8ce621e1d946b1d1d7717337ab8dc3cbc4fd996f
selftests/powerpc: Add ptrace tests for Protection Key registers

This test exercises read and write access to the AMR, IAMR and UAMOR.

Signed-off-by: Thiago Jung Bauermann <bauerman@linux.ibm.com>
[mpe: Simplify make rule]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/include/reg.h
tools/testing/selftests/powerpc/ptrace/Makefile
tools/testing/selftests/powerpc/ptrace/child.h [new file with mode: 0644]
tools/testing/selftests/powerpc/ptrace/ptrace-pkey.c [new file with mode: 0644]
tools/testing/selftests/powerpc/ptrace/ptrace.h