aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/Makefile
diff options
context:
space:
mode:
authorAthira Rajeev <atrajeev@linux.vnet.ibm.com>2022-06-10 19:11:05 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2022-06-29 08:57:44 +1000
commit3f1a87425f8c2f9af745923865a4765e36a2ed3c (patch)
tree5acb7f054760024d6f3a758b2feddf1985682fcf /tools/testing/selftests/powerpc/Makefile
parentselftests/powerpc/pmu: Add selftest for event alternatives for power9 (diff)
downloadlinux-dev-3f1a87425f8c2f9af745923865a4765e36a2ed3c.tar.xz
linux-dev-3f1a87425f8c2f9af745923865a4765e36a2ed3c.zip
selftests/powerpc/pmu: Add selftest for event alternatives for power10
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 power10. Example, Using PMC1 to PMC4 in a group and again trying to schedule PM_CYC_ALT (0x0001e) will fail since this exceeds number of programmable events in group. But since 0x600f4 is an alternative event for 0x0001e, it is possible to use 0x0001e in the group. Testcase uses such combination all events in power10 which has 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-28-atrajeev@linux.vnet.ibm.com
Diffstat (limited to 'tools/testing/selftests/powerpc/Makefile')
0 files changed, 0 insertions, 0 deletions