]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit07ab88edbbf2297c3e1806f87ac0339d57feb7ef
tree59b04b6e9d8b44d75faa31db6d54f14910a65e2d
parent61f9152043b2ef5e6b8e23ae536a7c06e3eda3d7
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]