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: 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

authored by

Thomas Weißschuh and committed by
Thomas Gleixner
1dcd1273 609e359a

+1 -1
+1 -1
tools/testing/selftests/vDSO/vdso_test_abi.c
··· 179 179 clock_getres_fail++; 180 180 } 181 181 182 - ret = syscall(SYS_clock_getres, clk_id, &sys_ts); 182 + ret = syscall(__NR_clock_getres, clk_id, &sys_ts); 183 183 184 184 ksft_print_msg("The syscall resolution is %lld %lld\n", 185 185 (long long)sys_ts.tv_sec, (long long)sys_ts.tv_nsec);