selftests/powerpc/pmu: Add macros to extract mmcr fields
authorMadhavan Srinivasan <maddy@linux.ibm.com>
Thu, 27 Jan 2022 07:19:58 +0000 (12:49 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 1 Mar 2022 12:38:13 +0000 (23:38 +1100)
commit79c4e6aba8dfc9206acc68884498080f451121f7
treebd7b377b3ad1f1d27fca22ef418f0c85f5760cc8
parent54d4ba7f22d1ed5bfbc915771cf2e3e147cf03b2
selftests/powerpc/pmu: Add macros to extract mmcr fields

Along with it, Add macros and utility functions to fetch individual
fields from Monitor Mode Control Register 2(MMCR2) register.

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