linux/tools/testing/selftests/powerpc/pmu
Kajol Jain c0f49bbb30 selftests/powerpc/pmu: Fix sample field check in the mmcra_thresh_marked_sample_test
[ Upstream commit 8a32341cf0 ]

The testcase verifies the setting of different fields in Monitor Mode
Control Register A (MMCRA). In the current code, EV_CODE_EXTRACT macro
is used to extract the "sample" field, which then needs to be further
processed to fetch rand_samp_elig and rand_samp_mode bits. But the
current code is not passing valid sample field to EV_CODE_EXTRACT
macro. Patch addresses this by fixing the input for EV_CODE_EXTRACT.

Fixes: 29cf373c57 ("selftests/powerpc/pmu: Add interface test for mmcra register fields")
Reported-by: David Binderman <dcb314@hotmail.com>
Link: https://lore.kernel.org/r/DB6P189MB0568CF002762C6C43AF6DF169CA89@DB6P189MB0568.EURP189.PROD.OUTLOOK.COM
Signed-off-by: Kajol Jain <kjain@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230301170918.69176-1-kjain@linux.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-11 23:03:31 +09:00
..
ebb selftests/powerpc: Avoid GCC 12 uninitialised variable warning 2022-08-01 22:21:18 +10:00
event_code_tests selftests/powerpc: Add missing PMU selftests to .gitignores 2022-08-15 20:59:17 +10:00
sampling_tests selftests/powerpc/pmu: Fix sample field check in the mmcra_thresh_marked_sample_test 2023-05-11 23:03:31 +09:00
.gitignore
branch_loops.S selftests/powerpc/pmu: Add interface test for mmcra_ifm field of indirect call type 2022-06-28 23:57:55 +10:00
count_instructions.c
count_stcx_fail.c
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
lib.c
lib.h
loop.S
Makefile selftests/powerpc/pmu: Add support for perf event code tests 2022-06-29 08:57:42 +10:00
per_event_excludes.c