Skip to content

Commit 1dcd127

Browse files
t-8chThomas Gleixner
authored andcommitted
selftests: vDSO: vdso_test_abi: Use UAPI system call numbers
SYS_clock_getres might have been redirected by libc to some other system call than the actual clock_getres. For testing it is required to use exactly this system call. Use the system call number exported by the UAPI headers which is always correct. Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Link: https://patch.msgid.link/20251223-vdso-compat-time32-v1-3-97ea7a06a543@linutronix.de
1 parent 609e359 commit 1dcd127

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/testing/selftests/vDSO/vdso_test_abi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ static void vdso_test_clock_getres(clockid_t clk_id)
179179
clock_getres_fail++;
180180
}
181181

182-
ret = syscall(SYS_clock_getres, clk_id, &sys_ts);
182+
ret = syscall(__NR_clock_getres, clk_id, &sys_ts);
183183

184184
ksft_print_msg("The syscall resolution is %lld %lld\n",
185185
(long long)sys_ts.tv_sec, (long long)sys_ts.tv_nsec);

0 commit comments

Comments
 (0)