]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1f3343905d536b9405e005a35bfe1310f03dadeb
tree303e91fb7bb2cfe2858eed4f66e38500253a6256
parent1f87853fbaef962c494e382c625bb7ba93ae7aab
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