selftests/powerpc/pmu: Add interface test for mmcra_ifm field for any branch type
authorKajol Jain <kjain@linux.ibm.com>
Fri, 10 Jun 2022 13:40:44 +0000 (19:10 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 28 Jun 2022 13:57:55 +0000 (23:57 +1000)
commitfaa64ddc1e398131e7eaadc8f03cb7bd3904eff2
treead2f58011fd874235e2fb2b60d5d6dd6c607fa93
parentc55dabc6d577a864cd618107ea6aaa6cad8c987b
selftests/powerpc/pmu: Add interface test for mmcra_ifm field for any branch type

The testcase uses "instructions" event to check if the
Instruction filtering mode(IFM) bits are programmed correctly
for type any branch. Testcase checks if IFM bits is
programmed correctly to Monitor Mode Control Register A (MMCRA)
via perf interface.

Signed-off-by: Kajol Jain <kjain@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220610134113.62991-7-atrajeev@linux.vnet.ibm.com
tools/testing/selftests/powerpc/pmu/sampling_tests/Makefile
tools/testing/selftests/powerpc/pmu/sampling_tests/mmcra_bhrb_any_test.c [new file with mode: 0644]