selftests/powerpc/pmu: Add macro to extract mmcr3 and mmcra fields
authorKajol Jain <kjain@linux.ibm.com>
Thu, 27 Jan 2022 07:20:00 +0000 (12:50 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 1 Mar 2022 12:38:13 +0000 (23:38 +1100)
commit13307f9584ea9408d9959302074dc4e8308b6cab
treedc5b5dc7ee5d61f5d10ad60a233f921ab92c0183
parent2b49e641063e7569493371ef433b9c4ce8c8dd8b
selftests/powerpc/pmu: Add macro to extract mmcr3 and mmcra fields

Add macro and utility functions to fetch individual fields from Monitor
Mode Control Register 3(MMCR3)and Monitor Mode Control Register A(MMCRA)
PMU registers

Signed-off-by: Kajol Jain <kjain@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220127072012.662451-9-kjain@linux.ibm.com
tools/testing/selftests/powerpc/pmu/sampling_tests/misc.h