[LTP] [PATCH V2 5/6] syscalls: Don't pass struct timespec to tst_syscall()
Cyril Hrubis
chrubis@suse.cz
Fri May 22 10:58:39 CEST 2020
Hi!
> > This is not enough to run on old kernels that have __NR_clock_getres
> > but don't have __NR_clock_getres_time64,
>
> What about reversing the order of the two ? Check __NR_clock_getres
> first ?
Moreover the __NR_ constants are always defined in order to avoid need
for excessive #ifdefs and the missing syscalls are defined to -1 in LTP.
So this will not work at all.
> > you need a runtime fallback
> > instead of a compile-time fallback.
>
> Why so ?
Given that 32bit syscalls can be disabled in kernel config we cannot
really tell which ones are supported before we attempt to call the
syscall.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list