linux-stable/tools/testing/selftests/powerpc/pmu
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
..
ebb selftests/powerpc: Allow bind_to_cpu() to automatically pick CPU 2023-04-20 13:21:45 +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: Add more utility macros 2023-06-19 17:36:27 +10:00
.gitignore selftests/powerpc: Add a test of counting larx/stcx 2020-05-15 11:58:55 +10:00
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 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 selftests/powerpc: Allow bind_to_cpu() to automatically pick CPU 2023-04-20 13:21:45 +10:00
lib.h selftests/powerpc: Move bind_to_cpu() to utils.h 2023-04-20 13:21:45 +10:00
loop.S selftests/powerpc: Add a test of counting larx/stcx 2020-05-15 11:58:55 +10:00
Makefile selftests/powerpc: Pass make context to children 2023-03-30 23:35:43 +11:00
per_event_excludes.c selftests/powerpc: Include asm/cputable.h from utils.h 2020-09-08 22:23:59 +10:00