linux/tools/testing/selftests/powerpc/pmu/sampling_tests
Benjamin Gray b9125c9aa0 selftests/powerpc: Add more utility macros
Adds _MSG assertion variants to provide more context behind why a
failure occurred. Also include unistd.h for _exit() and stdio.h for
fprintf(), and move ARRAY_SIZE macro to utils.h.

The _MSG variants and ARRAY_SIZE will be used by the following
DEXCR selftests.

Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Reviewed-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230616034846.311705-10-bgray@linux.ibm.com
2023-06-19 17:36:27 +10: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: Add more utility macros 2023-06-19 17:36:27 +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