]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:55:10 +0000 (19:55 -0600)
commit321066a0cce0e140aaeeaa70f6e0b80dce856797
tree4239cc51a5457cee6d0115cf256ddb3136aafa1b
parentfde89c278a4dea2083372a2144e5edd2a27a03d0
selftests/powerpc: Add ptrace hw breakpoint test

BugLink: https://bugs.launchpad.net/bugs/1836654
[ Upstream commit 9c2ddfe55c42bf4b9bc336a0650ab78f9222a159 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
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]