selftests/powerpc/dexcr: Add chdexcr utility
authorBenjamin Gray <bgray@linux.ibm.com>
Wed, 17 Apr 2024 11:23:24 +0000 (21:23 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 6 May 2024 12:05:17 +0000 (22:05 +1000)
commitf88723a609787254f7645eb6ac261b8363e8a5bc
tree9f437b8de5b43c80e3cf8ebf5222e7551773183a
parent9c4866b209ad31cae7c832d45c6137ce6a993ca0
selftests/powerpc/dexcr: Add chdexcr utility

Adds a utility to exercise the prctl DEXCR inheritance in the shell.
Supports setting and clearing each aspect.

Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
[mpe: Use correct SPDX license, use execvp() for usability, print errors]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240417112325.728010-9-bgray@linux.ibm.com
tools/testing/selftests/powerpc/dexcr/.gitignore
tools/testing/selftests/powerpc/dexcr/Makefile
tools/testing/selftests/powerpc/dexcr/chdexcr.c [new file with mode: 0644]
tools/testing/selftests/powerpc/dexcr/dexcr.h
tools/testing/selftests/powerpc/dexcr/lsdexcr.c