Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests: vDSO: fix vDSO name for powerpc

Following error occurs when running vdso_test_correctness on powerpc:

~ # ./vdso_test_correctness
[WARN] failed to find vDSO
[SKIP] No vDSO, so skipping clock_gettime() tests
[SKIP] No vDSO, so skipping clock_gettime64() tests
[RUN] Testing getcpu...
[OK] CPU 0: syscall: cpu 0, node 0

On powerpc, vDSO is neither called linux-vdso.so.1 nor linux-gate.so.1
but linux-vdso32.so.1 or linux-vdso64.so.1.

Also search those two names before giving up.

Fixes: c7e5789b24d3 ("kselftest: Move test_vdso to the vDSO test suite")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>

authored by

Christophe Leroy and committed by
Jason A. Donenfeld
59eb856c f78280b1

+6
+6
tools/testing/selftests/vDSO/vdso_test_correctness.c
··· 114 114 if (!vdso) 115 115 vdso = dlopen("linux-gate.so.1", 116 116 RTLD_LAZY | RTLD_LOCAL | RTLD_NOLOAD); 117 + if (!vdso) 118 + vdso = dlopen("linux-vdso32.so.1", 119 + RTLD_LAZY | RTLD_LOCAL | RTLD_NOLOAD); 120 + if (!vdso) 121 + vdso = dlopen("linux-vdso64.so.1", 122 + RTLD_LAZY | RTLD_LOCAL | RTLD_NOLOAD); 117 123 if (!vdso) { 118 124 printf("[WARN]\tfailed to find vDSO\n"); 119 125 return;