selftests/powerpc: Add test of stack expansion logic
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 24 Jul 2020 09:25:24 +0000 (19:25 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 29 Jul 2020 11:02:11 +0000 (21:02 +1000)
commitc9938a9dac95be7650218cdd8e9d1f882e7b5691
tree303e91fb7bb2cfe2858eed4f66e38500253a6256
parent5f8cf6475828b600ff6d000e580c961ac839cc61
selftests/powerpc: Add test of stack expansion logic

We have custom stack expansion checks that it turns out are extremely
badly tested and contain bugs, surprise. So add some tests that
exercise the code and capture the current boundary conditions.

The signal test currently fails on 64-bit kernels because the 2048
byte allowance for the signal frame is too small, we will fix that in
a subsequent patch.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200724092528.1578671-1-mpe@ellerman.id.au
tools/testing/selftests/powerpc/mm/.gitignore
tools/testing/selftests/powerpc/mm/Makefile
tools/testing/selftests/powerpc/mm/stack_expansion_ldst.c [new file with mode: 0644]
tools/testing/selftests/powerpc/mm/stack_expansion_signal.c [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/lib.h