TencentOS-kernel/tools/testing/selftests/powerpc/security
Daniel Axtens 6966277a76 selftests/powerpc: entry flush test
commit 89a83a0c69c81a25ce91002b90ca27ed86132a0a upstream.

Add a test modelled on the RFI flush test which counts the number
of L1D misses doing a simple syscall with the entry flush on and off.

For simplicity of backporting, this test duplicates a lot of code from
the upstream rfi_flush. This is cleaned up upstream, but we don't clean
it up here because it would involve bringing in even more commits.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-16 16:41:01 +08:00
..
.gitignore selftests/powerpc: entry flush test 2021-03-16 16:41:01 +08:00
Makefile selftests/powerpc: entry flush test 2021-03-16 16:41:01 +08:00
entry_flush.c selftests/powerpc: entry flush test 2021-03-16 16:41:01 +08:00
rfi_flush.c selftests/powerpc: rfi_flush: disable entry flush if present 2021-03-16 16:41:00 +08:00