]> 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)
commitca5b4f13cd37fea6fd7d5c0a109e7709270b0675
treeca4f07cc6cb63262ec7ab6a807e1b25cee5df5f6
parentb58ba42c43e34bbed63dd5804df2a6181eaefa8c
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]