linux-stable/tools/testing/selftests/powerpc
Athira Rajeev 5958ad4392 selftests/powerpc/pmu: Add selftest for event alternatives for power9
Platform specific PMU supports alternative event for some of the event
codes. During perf_event_open, it any event group doesn't match
constraint check criteria, further lookup is done to find alternative
event. Code checks to see if it is possible to schedule event as group
using alternative events.

Testcase exercises the alternative event find code for power9. Example,
since events in same PMC can't go in as a group, ideally using
PM_RUN_CYC_ALT (0x200f4) and PM_BR_TAKEN_CMPL (0x200fa) will fail. But
since RUN_CYC (0x600f4) is alternative event for 0x200f4, it is possible
to use 0x600f4 and 0x200fa as group. Testcase uses such combination for
all events in power9 which has an alternative event.

Signed-off-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220610134113.62991-27-atrajeev@linux.vnet.ibm.com
2022-06-29 08:57:44 +10:00
..
alignment
benchmarks
cache_shape
copyloops selftests/powerpc/copyloops: Add memmove_64 test 2022-02-12 22:47:44 +11:00
dscr
eeh
include selftests/powerpc/pmu: Refactor the platform check and add macros to find array size/PVR 2022-06-29 08:57:39 +10:00
lib
math selftests/powerpc: Add matrix multiply assist (MMA) test 2022-04-27 16:32:42 +10:00
mce selftests/powerpc: Add test for real address error handling 2022-03-08 00:04:59 +11:00
mm selftests/powerpc: Add a test of 4PB SLB handling 2022-04-29 13:43:22 +10:00
nx-gzip
papr_attributes selftests/powerpc: Skip energy_scale_info test on older firmware 2022-06-26 10:29:43 +10:00
pmu selftests/powerpc/pmu: Add selftest for event alternatives for power9 2022-06-29 08:57:44 +10:00
primitives
ptrace
scripts
security selftests/powerpc/pmu: fix spelling mistake "mis-match" -> "mismatch" 2022-05-22 15:59:54 +10:00
signal selftests/powerpc: Add a test of sigreturning to an unaligned address 2021-12-25 10:56:05 +11:00
stringloops
switch_endian
syscalls
tm
vphn
harness.c
Makefile selftest/powerpc: Add PAPR sysfs attributes sniff test 2022-03-08 00:05:00 +11:00
utils.c