]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/powerpc/pmu: Add interface test for mmcra_ifm field for conditional branch...
authorKajol Jain <kjain@linux.ibm.com>
Fri, 10 Jun 2022 13:40:45 +0000 (19:10 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 28 Jun 2022 13:57:56 +0000 (23:57 +1000)
commit1c33c75d1a3e81707cee249c029d38c497c6984a
treebe169278fbd8e9541680d15874770cdb66705c9a
parent562646f6e91c3ed5a83788b5c9bfba11c42c0344
selftests/powerpc/pmu: Add interface test for mmcra_ifm field for conditional branch type

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

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-8-atrajeev@linux.vnet.ibm.com
tools/testing/selftests/powerpc/pmu/sampling_tests/Makefile
tools/testing/selftests/powerpc/pmu/sampling_tests/mmcra_bhrb_cond_test.c [new file with mode: 0644]