mirror-linux/tools/testing/selftests/powerpc
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
..
alignment selftests/powerpc: Suggest memtrace instead of /dev/mem for ci memory 2021-04-08 21:17:44 +10:00
benchmarks powerpc/selftests: Use timersub() for gettimeofday() 2022-08-22 13:36:59 +10:00
cache_shape .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
copyloops selftests/powerpc/copyloops: Add memmove_64 test 2022-02-12 22:47:44 +11:00
dscr selftests/powerpc: Fix resource leaks 2022-12-31 13:32:51 +01:00
eeh selftests/powerpc: Add VF recovery tests 2021-01-31 22:35:47 +11:00
include selftests/powerpc/ptrace: Do more of ptrace-gpr in asm 2022-07-25 12:05:16 +10:00
lib selftests/powerpc/ptrace: Convert to load/store doubles 2022-07-25 12:05:16 +10:00
math selftests/powerpc: Fix matrix multiply assist test 2022-07-28 16:22:15 +10:00
mce selftests/powerpc: Add missing files to .gitignores 2022-06-29 19:37:04 +10:00
mm selftests/powerpc: Skip 4PB test on 4K PAGE_SIZE systems 2022-09-04 22:39:59 +10:00
nx-gzip selftests/powerpc: Use req_max_processed_len from sysfs NX capabilities 2021-06-25 14:47:19 +10:00
papr_attributes selftests/powerpc: Skip energy_scale_info test on older firmware 2022-06-26 10:29:43 +10:00
pmu selftests/powerpc/pmu: Fix sample field check in the mmcra_thresh_marked_sample_test 2023-05-11 23:03:31 +09:00
primitives powerpc/bug: Provide better flexibility to WARN_ON/__WARN_FLAGS() with asm goto 2021-08-15 13:49:24 +10:00
ptrace selftests/powerpc: Fix incorrect kernel headers search path 2023-03-10 09:34:15 +01:00
scripts
security selftests/powerpc: Fix incorrect kernel headers search path 2023-03-10 09:34:15 +01:00
signal selftests/powerpc: Add a test of sigreturning to an unaligned address 2021-12-25 10:56:05 +11:00
stringloops selftests/powerpc: Include asm/cputable.h from utils.h 2020-09-08 22:23:59 +10:00
switch_endian selftests/powerpc: Properly handle failure in switch_endian_test 2020-09-08 22:24:13 +10:00
syscalls selftests/powerpc: Fix incorrect kernel headers search path 2023-03-10 09:34:15 +01:00
tm selftests/powerpc: Fix incorrect kernel headers search path 2023-03-10 09:34:15 +01:00
vphn .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Makefile selftest/powerpc: Add PAPR sysfs attributes sniff test 2022-03-08 00:05:00 +11:00
harness.c
utils.c selftests/powerpc: Move set_dscr() into rfi_flush.c 2020-09-08 22:23:57 +10:00