selftests/powerpc: entry flush test
authorDaniel Axtens <dja@axtens.net>
Tue, 17 Nov 2020 05:59:14 +0000 (16:59 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 19 Nov 2020 12:47:20 +0000 (23:47 +1100)
commit89a83a0c69c81a25ce91002b90ca27ed86132a0a
tree59b04b6e9d8b44d75faa31db6d54f14910a65e2d
parent178d52c6e89c38d0553b0ac8b99927b11eb995b0
selftests/powerpc: entry flush test

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
rfi_flush. We clean that up in the next patch.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/security/.gitignore
tools/testing/selftests/powerpc/security/Makefile
tools/testing/selftests/powerpc/security/entry_flush.c [new file with mode: 0644]