]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb0fa34f6765afb6cca1077f6b1ccd8e912713e6d
treeb3a0e0258942f9aab9cbb93be4aa6c96b69bd23e
parentc54922c4164ec84955308ac412c6b6ae141a17f1
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:

  dc9b904eb4 powerpc/ptrace: Fix setting 512B aligned breakpoints with PTRACE_SET_DEBUGREG
  3ee0c2c215 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]