]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/powerpc/pmu: Add interface test for bhrb disable field for non-branch samples
authorKajol Jain <kjain@linux.ibm.com>
Fri, 10 Jun 2022 13:40:52 +0000 (19:10 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 28 Jun 2022 22:57:42 +0000 (08:57 +1000)
commit8a40ca120fa851c74a294a6627eacb9e4a857db4
treeca4f07cc6cb63262ec7ab6a807e1b25cee5df5f6
parent25f24616cd8a8ff5e1c7a88eb5ed7e2e49a81954
selftests/powerpc/pmu: Add interface test for bhrb disable field for non-branch samples

The testcase uses "instructions" event to generate the samples and fetch
Monitor Mode Control Register A (MMCRA) when overflow. Branch History
Rolling Buffer(bhrb) disable bit is part of MMCRA which need to be
verified by perf interface. Incase sample is not of branch type, bhrb
disable bit is explicitly set to 1. Testcase checks if the bhrb disable
bit is set of MMCRA register 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-15-atrajeev@linux.vnet.ibm.com
tools/testing/selftests/powerpc/pmu/sampling_tests/Makefile
tools/testing/selftests/powerpc/pmu/sampling_tests/mmcra_bhrb_disable_no_branch_test.c [new file with mode: 0644]