selftests/powerpc/pmu: Add macro to extract mmcr0/mmcr1 fields
authorAthira Rajeev <atrajeev@linux.vnet.ibm.com>
Thu, 27 Jan 2022 07:19:59 +0000 (12:49 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 1 Mar 2022 12:38:13 +0000 (23:38 +1100)
commit2b49e641063e7569493371ef433b9c4ce8c8dd8b
tree864e157a3bc1a9991a29f7b07acb01baf2ab4d36
parent79c4e6aba8dfc9206acc68884498080f451121f7
selftests/powerpc/pmu: Add macro to extract mmcr0/mmcr1 fields

Add macro and utility functions to fetch individual fields from Monitor
Mode Control Register 0(MMCR0) and Monitor Mode Control Register
1(MMCR1) PMU register.

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/20220127072012.662451-8-kjain@linux.ibm.com
tools/testing/selftests/powerpc/pmu/sampling_tests/misc.h