selftests/powerpc: Add read/write debugfs file, int
authorBenjamin Gray <bgray@linux.ibm.com>
Fri, 3 Feb 2023 00:39:44 +0000 (11:39 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 9 Feb 2023 12:56:45 +0000 (23:56 +1100)
commit121d340be9a17ed89d523c56203908c01e09a306
treed8d205c7b70aa5a237a559d5e7a12508bb9e2ea9
parenta974f0c131891027fe8490e654a220151b4caa82
selftests/powerpc: Add read/write debugfs file, int

Debugfs files are not always integers, so make *_file return/write a
byte buffer, and *_int deal with int values specifically. This increases
consistency with the other file read/write helpers.

Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20230203003947.38033-3-bgray@linux.ibm.com
tools/testing/selftests/powerpc/include/utils.h
tools/testing/selftests/powerpc/security/entry_flush.c
tools/testing/selftests/powerpc/security/rfi_flush.c
tools/testing/selftests/powerpc/security/uaccess_flush.c
tools/testing/selftests/powerpc/utils.c