mirror-linux/tools/testing/selftests/powerpc/pmu/sampling_tests
Kajol Jain 8a32341cf0 selftests/powerpc/pmu: Fix sample field check in the mmcra_thresh_marked_sample_test
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
2023-03-15 00:52:09 +11:00
..
.gitignore selftests/powerpc: Add missing PMU selftests to .gitignores 2022-08-15 20:59:17 +10:00
Makefile selftests/powerpc/pmu: Add interface test for bhrb disable field for non-branch samples 2022-06-29 08:57:42 +10:00
bhrb_filter_map_test.c selftests/powerpc: Update bhrb filter sampling test for multiple branch filters 2022-09-28 19:22:13 +10:00
bhrb_no_crash_wo_pmu_test.c selftests/powerpc/pmu: Add selftest to check branch stack enablement will not crash on any platforms 2022-06-29 08:57:42 +10:00
intr_regs_no_crash_wo_pmu_test.c selftests/powerpc/pmu: Add selftest to check PERF_SAMPLE_REGS_INTR option will not crash on any platforms 2022-06-29 08:57:42 +10:00
misc.c selftests/powerpc/pmu: Refactor the platform check and add macros to find array size/PVR 2022-06-29 08:57:39 +10:00
misc.h selftests/powerpc/pmu: Refactor the platform check and add macros to find array size/PVR 2022-06-29 08:57:39 +10:00
mmcr0_cc56run_test.c selftests/powerpc/pmu/: Add interface test for mmcr0_cc56run field 2022-03-01 23:39:09 +11:00
mmcr0_exceptionbits_test.c selftests/powerpc/pmu/: Add interface test for mmcr0 exception bits 2022-03-01 23:38:46 +11:00
mmcr0_fc56_pmc1ce_test.c selftests/powerpc/pmu/: Add interface test for mmcr0_fc56 field using pmc1 2022-03-01 23:39:54 +11:00
mmcr0_fc56_pmc56_test.c selftests/powerpc/pmu/: Add interface test for mmcr0_pmc56 using pmc5 2022-03-01 23:40:06 +11:00
mmcr0_pmccext_test.c selftests/powerpc/pmu/: Add interface test for mmcr0_pmccext bit 2022-03-01 23:39:27 +11:00
mmcr0_pmcjce_test.c selftests/powerpc/pmu/: Add interface test for mmcr0_pmcjce field 2022-03-01 23:39:41 +11:00
mmcr1_comb_test.c selftests/powerpc/pmu/: Add interface test for mmcr1_comb field 2022-03-01 23:40:16 +11:00
mmcr1_sel_unit_cache_test.c selftests/powerpc/pmu: Add selftest for mmcr1 pmcxsel/unit/cache fields 2022-06-29 08:57:42 +10:00
mmcr2_fcs_fch_test.c selftests/powerpc/pmu/: Add interface test for mmcr2_fcs_fch fields 2022-03-01 23:40:36 +11:00
mmcr2_l2l3_test.c selftests/powerpc/pmu/: Add interface test for mmcr2_l2l3 field 2022-03-01 23:40:26 +11:00
mmcr3_src_test.c selftests/powerpc/pmu/: Add interface test for mmcr3_src fields 2022-03-01 23:40:47 +11:00
mmcra_bhrb_any_test.c selftests/powerpc/pmu: Add interface test for mmcra_ifm field for any branch type 2022-06-28 23:57:55 +10:00
mmcra_bhrb_cond_test.c selftests/powerpc/pmu: Add interface test for mmcra_ifm field for conditional branch type 2022-06-28 23:57:56 +10:00
mmcra_bhrb_disable_no_branch_test.c selftests/powerpc/pmu: Add interface test for bhrb disable field for non-branch samples 2022-06-29 08:57:42 +10:00
mmcra_bhrb_disable_test.c selftests/powerpc/pmu: Add interface test for bhrb disable field 2022-06-28 23:57:56 +10:00
mmcra_bhrb_ind_call_test.c selftests/powerpc/pmu: Add interface test for mmcra_ifm field of indirect call type 2022-06-28 23:57:55 +10:00
mmcra_thresh_cmp_test.c selftests/powerpc/pmu: Add interface test for mmcra_thresh_cmp fields 2022-06-28 23:57:42 +10:00
mmcra_thresh_marked_sample_test.c selftests/powerpc/pmu: Fix sample field check in the mmcra_thresh_marked_sample_test 2023-03-15 00:52:09 +11:00