]> 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)
commit124524466d4cc0ccca6e975dbd643f30f4771747
tree59b04b6e9d8b44d75faa31db6d54f14910a65e2d
parent039ef3795011f952b862c17bbcd38dd0ebf77120
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]