selftests/powerpc/pmu/: Add interface test for mmcr3_src fields
authorKajol Jain <kjain@linux.ibm.com>
Thu, 27 Jan 2022 07:20:11 +0000 (12:50 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 1 Mar 2022 12:40:47 +0000 (23:40 +1100)
commit02f02feb6b50c67171fd56bc3fd0fd96118c5c12
tree9aa9decc226432c942962c9bc721d823463af987
parent9ee241f1b1447c7e8ca90902ab1888aa9e7a3c00
selftests/powerpc/pmu/: Add interface test for mmcr3_src fields

The testcase uses event code 0x1340000001c040 to verify the settings for
different src fields in Monitor Mode Control Register 3 (MMCR3). Checks
if these fields are translated correctly via perf interface to MMCR3 on
ISA v3.1 platform.

Signed-off-by: Kajol Jain <kjain@linux.ibm.com>
[mpe: Add error checking, drop GET_MMCR_FIELD, add to .gitignore]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220127072012.662451-20-kjain@linux.ibm.com
tools/testing/selftests/powerpc/pmu/sampling_tests/.gitignore
tools/testing/selftests/powerpc/pmu/sampling_tests/Makefile
tools/testing/selftests/powerpc/pmu/sampling_tests/mmcr3_src_test.c [new file with mode: 0644]