linux/tools/testing/selftests/powerpc/pmu
Kajol Jain 29cf373c57 selftests/powerpc/pmu: Add interface test for mmcra register fields
The testcase uses event code 0x35340401e0 to verify the settings for
different fields in Monitor Mode Control Register A (MMCRA). The fields
include thresh_start, thresh_stop thresh_select, sdar mode, sample and
marked bit. Checks if these fields are translated correctly via perf
interface to MMCRA.

Signed-off-by: Kajol Jain <kjain@linux.ibm.com>
[mpe: Add error checking, drop GET_MMCR_FIELD, add to .gitignore]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220127072012.662451-21-kjain@linux.ibm.com
2022-03-01 23:40:58 +11:00
..
ebb selftests/powerpc: EBB selftest for MMCR0 control for PMU SPRs in ISA v3.1 2021-06-17 00:09:11 +10:00
sampling_tests selftests/powerpc/pmu: Add interface test for mmcra register fields 2022-03-01 23:40:58 +11:00
.gitignore selftests/powerpc: Add a test of counting larx/stcx 2020-05-15 11:58:55 +10:00
count_instructions.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
count_stcx_fail.c selftests/powerpc: Include asm/cputable.h from utils.h 2020-09-08 22:23:59 +10:00
event.c selftests/powerpc/pmu: Add event_init_sampling function 2022-03-01 23:38:13 +11:00
event.h selftests/powerpc/pmu: Add event_init_sampling function 2022-03-01 23:38:13 +11:00
l3_bank_test.c selftests/powerpc: Skip L3 bank test on older CPUs 2020-09-08 22:24:08 +10:00
lib.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
lib.h selftests/powerpc: Add test of stack expansion logic 2020-07-29 21:02:11 +10:00
loop.S selftests/powerpc: Add a test of counting larx/stcx 2020-05-15 11:58:55 +10:00
Makefile selftests/powerpc/pmu: Add support for perf sampling tests 2022-03-01 23:37:49 +11:00
per_event_excludes.c selftests/powerpc: Include asm/cputable.h from utils.h 2020-09-08 22:23:59 +10:00