linux-next/tools/testing/selftests/vDSO
Tiezhu Yang 48f044a784 selftests/vDSO: fix runtime errors on LoongArch
It could not find __vdso_getcpu and __vdso_gettimeofday when test getcpu
and gettimeofday on LoongArch.

  # make headers && cd tools/testing/selftests/vDSO && make
  # ./vdso_test_getcpu
  Could not find __vdso_getcpu
  # ./vdso_test_gettimeofday
  Could not find __vdso_gettimeofday

One simple way is to add LoongArch case to define version and name, just
like commit d942f231af ("selftests/vDSO: Add riscv getcpu & gettimeofday
test"), but it is not the best way.

Since each architecture has already defined names and versions in
vdso_config.h, it is proper to include vdso_config.h to get version and
name for all archs.

Link: https://lkml.kernel.org/r/20240428030530.24399-3-yangtiezhu@loongson.cn
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Tested-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Kees Cook <keescook@chromium.org>
Cc: Mark Brown <broonie@kernel.org>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2024-05-05 17:28:07 -07:00
..
.gitignore selftests/vDSO: add additional binaries to .gitignore 2021-01-04 09:25:44 -07:00
Makefile kselftest: Move test_vdso to the vDSO test suite 2020-10-27 17:58:33 -06:00
parse_vdso.c selftests: vdso: Use a header file to prototype parse_vdso API 2020-05-22 11:04:10 -06:00
parse_vdso.h selftests: vdso: Use a header file to prototype parse_vdso API 2020-05-22 11:04:10 -06:00
vdso_config.h selftests/vDSO: fix building errors on LoongArch 2024-05-05 17:28:07 -07:00
vdso_standalone_test_x86.c selftests: vdso: Use a header file to prototype parse_vdso API 2020-05-22 11:04:10 -06:00
vdso_test_abi.c kselftest/vDSO: Use ksft_print_msg() rather than printf in vdso_test_abi 2023-11-30 14:50:09 -07: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 array_size.cocci warning 2022-04-04 13:27:11 -06:00
vdso_test_getcpu.c selftests/vDSO: fix runtime errors on LoongArch 2024-05-05 17:28:07 -07:00
vdso_test_gettimeofday.c selftests/vDSO: fix runtime errors on LoongArch 2024-05-05 17:28:07 -07:00