]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tools/testing/selftests/powerpc: Enable pmu selftests for power11
authorAthira Rajeev <atrajeev@linux.vnet.ibm.com>
Mon, 13 Jan 2025 07:58:54 +0000 (13:28 +0530)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Tue, 11 Feb 2025 06:03:51 +0000 (11:33 +0530)
commitfd4d2f325192a11b0bff8bf6226285a821bf38db
tree118dbb328ceb5130b0feee01d8c1058929ca4a49
parentf848e7ee1588d66539da7315d9a99bfaeda3b970
tools/testing/selftests/powerpc: Enable pmu selftests for power11

Add check for power11 pvr in the selftest utility
functions. Selftests uses pvr value to check for platform
support inorder to run the tests. pvr is also used to
send the extended mask value to capture sampling registers.

Update some of the utility functions to use hwcap2 inorder
to return platform specific bits from sampling registers.

Signed-off-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250113075858.45137-1-atrajeev@linux.vnet.ibm.com
tools/testing/selftests/powerpc/pmu/sampling_tests/misc.c
tools/testing/selftests/powerpc/pmu/sampling_tests/misc.h