mirror-linux/tools/testing/selftests/vDSO
Jason A. Donenfeld 210860e7f7 selftests: vDSO: check cpu caps before running chacha test
Some archs -- arm64 and s390x -- implemented chacha using instructions
that are available most places, but aren't always available. The kernel
handles this just fine, but the selftest does not. Check the hwcaps
before running, and skip the test if the cpu doesn't support it. As
well, on s390x, always emit the fallback instructions of an alternative
block, to ensure maximum compatibility.

Co-developed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2024-09-16 13:22:04 +02:00
..
.gitignore selftests/vDSO: add tests for vgetrandom 2024-07-19 20:22:12 +02:00
Makefile s390/vdso: Wire up getrandom() vdso implementation 2024-09-13 20:57:31 +02:00
parse_vdso.c selftests: vDSO: fix ELF hash table entry size for s390x 2024-09-13 17:28:36 +02:00
parse_vdso.h selftests: vdso: Use a header file to prototype parse_vdso API 2020-05-22 11:04:10 -06:00
vdso_call.h selftests: vDSO: fix the way vDSO functions are called for powerpc 2024-08-30 15:48:45 +02:00
vdso_config.h selftests: vDSO: fix vdso_config for s390 2024-09-13 17:28:36 +02:00
vdso_standalone_test_x86.c selftests/vDSO: fix clang build errors and warnings 2024-07-05 14:12:23 -06:00
vdso_test_abi.c selftests: vDSO: use parse_vdso.h in vdso_test_abi 2024-08-30 15:48:45 +02:00
vdso_test_chacha.c selftests: vDSO: check cpu caps before running chacha test 2024-09-16 13:22:04 +02:00
vdso_test_clock_getres.c kselftest: vDSO: Fix accumulation of uninitialized ret when CLOCK_REALTIME is undefined 2023-06-12 16:39:10 -06:00
vdso_test_correctness.c selftests: vDSO: fix the way vDSO functions are called for powerpc 2024-08-30 15:48:45 +02:00
vdso_test_getcpu.c selftests: vDSO: fix the way vDSO functions are called for powerpc 2024-08-30 15:48:45 +02:00
vdso_test_getrandom.c selftests: vDSO: ensure vgetrandom works in a time namespace 2024-09-13 17:28:35 +02:00
vdso_test_gettimeofday.c selftests: vDSO: fix the way vDSO functions are called for powerpc 2024-08-30 15:48:45 +02:00