linux/tools/testing/selftests/powerpc/include
Michael Ellerman 611e385087 selftests/powerpc/ptrace: Do more of ptrace-gpr in asm
The ptrace-gpr test includes some inline asm to load GPR and FPR
registers. It then goes back to C to wait for the parent to trace it and
then checks register contents.

The split between inline asm and C is fragile, it relies on the compiler
not using any non-volatile GPRs after the inline asm block. It also
requires a very large and unwieldy inline asm block.

So convert the logic to set registers, wait, and store registers to a
single asm function, meaning there's no window for the compiler to
intervene.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220627140239.2464900-10-mpe@ellerman.id.au
2022-07-25 12:05:16 +10:00
..
basic_asm.h selftests/powerpc/ptrace: Do more of ptrace-gpr in asm 2022-07-25 12:05:16 +10:00
fpu_asm.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
gpr_asm.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
instructions.h selftests/powerpc: Add prefixed loads/stores to alignment_handler test 2020-06-22 14:18:45 +10:00
pkeys.h selftests/powerpc: Fix pkey syscall redefinitions 2020-08-05 10:14:03 +10:00
reg.h selftests/powerpc/ptrace: Convert to load/store doubles 2022-07-25 12:05:16 +10:00
subunit.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
utils.h selftests/powerpc: Add support to fetch "platform" and "base platform" from auxv to detect platform. 2022-06-28 23:56:46 +10:00
vmx_asm.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
vsx_asm.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00