selftests/powerpc: Add ptrace hw breakpoint test
authorMichael Neuling <mikey@neuling.org>
Tue, 22 May 2018 06:14:27 +0000 (16:14 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 24 May 2018 14:08:25 +0000 (00:08 +1000)
commit9c2ddfe55c42bf4b9bc336a0650ab78f9222a159
treeb3a0e0258942f9aab9cbb93be4aa6c96b69bd23e
parentbd79010fb3a9aa160e1780e2496798e3ac6e7ba5
selftests/powerpc: Add ptrace hw breakpoint test

This test the ptrace hw breakpoints via PTRACE_SET_DEBUGREG and
PPC_PTRACE_SETHWDEBUG.  This test was use to find the bugs fixed by
these recent commits:

  4f7c06e26e powerpc/ptrace: Fix setting 512B aligned breakpoints with PTRACE_SET_DEBUGREG
  cd6ef7eebf powerpc/ptrace: Fix enforcement of DAWR constraints

Signed-off-by: Michael Neuling <mikey@neuling.org>
[mpe: Add SPDX tag, clang format it]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/ptrace/.gitignore
tools/testing/selftests/powerpc/ptrace/Makefile
tools/testing/selftests/powerpc/ptrace/ptrace-hwbreak.c [new file with mode: 0644]