linux/tools/testing/selftests/powerpc/security
Madhavan Srinivasan 6523dce862 selftests/powerpc/pmu: Add macros to parse event codes
Each platform has raw event encoding format which specifies the bit
positions for different fields. The fields from event code gets
translated into performance monitoring mode control register (MMCRx)
settings. Patch add macros to extract individual fields from the event
code.

Add functions for sanity checks, since testcases currently are only
supported in power9 and power10.

Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
[mpe: Read PVR directly rather than using /proc/cpuinfo]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220127072012.662451-4-kjain@linux.ibm.com
2022-03-01 23:38:12 +11:00
..
.gitignore selftests/powerpc: update .gitignore 2020-12-04 01:01:21 +11:00
branch_loops.S selftests/powerpc: Add a test of spectre_v2 mitigations 2019-10-30 15:43:57 +11:00
entry_flush.c selftests/powerpc: Fix L1D flushing tests for Power10 2021-03-24 14:09:29 +11:00
flush_utils.c selftests/powerpc: Add uaccess flush test 2021-04-23 01:38:03 +10:00
flush_utils.h selftests/powerpc: Add uaccess flush test 2021-04-23 01:38:03 +10:00
Makefile selftests/powerpc: Add test of mitigation patching 2021-05-17 15:27:47 +10:00
mitigation-patching.sh selftests/powerpc: skip tests for unavailable mitigations. 2021-12-16 21:31:46 +11:00
rfi_flush.c selftests/powerpc: Fix L1D flushing tests for Power10 2021-03-24 14:09:29 +11:00
spectre_v2.c selftests/powerpc/pmu: Add macros to parse event codes 2022-03-01 23:38:12 +11:00
uaccess_flush.c selftests/powerpc: Add uaccess flush test 2021-04-23 01:38:03 +10:00