selftests/powerpc/dexcr: Add hashst/hashchk test
authorBenjamin Gray <bgray@linux.ibm.com>
Mon, 19 Jun 2023 07:36:27 +0000 (17:36 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 19 Jun 2023 07:36:28 +0000 (17:36 +1000)
commitbdb07f35a52f40c461c7da06ddcbaca1950fb9e0
tree2d3ef35d8ef3bede854c1a35e73ae2f9e03ae776
parentb9125c9aa043a7556626e1aafb3190c61c1e2b2b
selftests/powerpc/dexcr: Add hashst/hashchk test

Test the kernel DEXCR[NPHIE] interface and hashchk exception handling.

Introduces with it a DEXCR utils library for common DEXCR operations.

Volatile is used to prevent the compiler optimising away the signal
tests.

Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230616034846.311705-11-bgray@linux.ibm.com
tools/testing/selftests/powerpc/Makefile
tools/testing/selftests/powerpc/dexcr/.gitignore [new file with mode: 0644]
tools/testing/selftests/powerpc/dexcr/Makefile [new file with mode: 0644]
tools/testing/selftests/powerpc/dexcr/dexcr.c [new file with mode: 0644]
tools/testing/selftests/powerpc/dexcr/dexcr.h [new file with mode: 0644]
tools/testing/selftests/powerpc/dexcr/hashchk_test.c [new file with mode: 0644]
tools/testing/selftests/powerpc/include/reg.h
tools/testing/selftests/powerpc/include/utils.h
tools/testing/selftests/powerpc/utils.c