]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/powerpc/pmu: Add interface test for mmcra_thresh_cmp fields
authorKajol Jain <kjain@linux.ibm.com>
Fri, 10 Jun 2022 13:40:41 +0000 (19:10 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 28 Jun 2022 13:57:42 +0000 (23:57 +1000)
commitf513eae291397b6e2e321262cd569292558fe635
tree8ed71e834bfdfe78c5b893dda121e19f0056433c
parent7e1813e8dee505702adc291c01f5578ce0c92209
selftests/powerpc/pmu: Add interface test for mmcra_thresh_cmp fields

The testcase uses event code 0x35340401e0 for load only sampling, to
verify the settings of thresh compare field in Monitor Mode Control
Register A (MMCRA: 9-18 bits for power9 and MMCRA: 8-18 bits for
power10). Testcase checks if the thresh compare field is programmed
correctly via perf interface to MMCRA register.

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