]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/powerpc/pmu: Add interface test for mmcra_ifm field of indirect call type
authorKajol Jain <kjain@linux.ibm.com>
Fri, 10 Jun 2022 13:40:43 +0000 (19:10 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 28 Jun 2022 13:57:55 +0000 (23:57 +1000)
commit03cd5c34cac4052e6e418096dfbe60978cde856a
tree595c813ccfea5de766753366d0d33a08c9f55402
parent8bf3ce9a1a97e793ec1eb594b30f537a9175b59d
selftests/powerpc/pmu: Add interface test for mmcra_ifm field of indirect call type

The testcase uses "instructions" event to check if the
Instruction filtering mode(IFM) bits are programmed correctly
for indirect branch type. Testcase checks if IFM bits are
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-6-atrajeev@linux.vnet.ibm.com
tools/testing/selftests/powerpc/pmu/branch_loops.S [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/sampling_tests/Makefile
tools/testing/selftests/powerpc/pmu/sampling_tests/mmcra_bhrb_ind_call_test.c [new file with mode: 0644]