selftests/powerpc/ptrace: Update ptrace-perf watchpoint selftest
authorBenjamin Gray <bgray@linux.ibm.com>
Tue, 1 Aug 2023 01:17:43 +0000 (11:17 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Aug 2023 13:54:50 +0000 (23:54 +1000)
commit58709f6fc327a997daeeca77aa5e6bd4d4c238cf
tree8b381be9f3088861606d5ce9502377e01cfdf962
parentbd29813ae10698f7bdfb3c68eacbb6464ec701ff
selftests/powerpc/ptrace: Update ptrace-perf watchpoint selftest

Now that ptrace and perf are no longer exclusive, update the
test to exercise interesting interactions.

An assembly file is used for the children to allow precise instruction
choice and addresses, while avoiding any compiler quirks.

Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230801011744.153973-7-bgray@linux.ibm.com
tools/testing/selftests/powerpc/ptrace/Makefile
tools/testing/selftests/powerpc/ptrace/ptrace-perf-asm.S [new file with mode: 0644]
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c