selftests/powerpc: Add uaccess flush test

Also based on the RFI and entry flush tests, it counts the L1D misses
by doing a syscall that does user access: uname, in this case.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
[dja: forward port, rename function]
Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210225061949.1213404-1-dja@axtens.net
This commit is contained in:
Thadeu Lima de Souza Cascardo 2021-02-25 17:19:49 +11:00 • committed by Michael Ellerman
commit da650ada10
4 changed files with 176 additions and 1 deletions