[LTP] [PATCH] select: tests offer choice of syscall path:

Cyril Hrubis chrubis@suse.cz
Wed Mar 6 15:54:09 CET 2019

> Switch between libc library, __newselect syscall, select syscall or
> pselect6 syscall for selection of select() tests.  This provides
> filled in coverage of all the possible select alternatives.
> CC flags can be one of:
> -DSYSCALL_SELECT_LIBC        // use select() libc library function
> -DSYSCALL_SELECT__NEWSELECT  // use __NR__newselect system call
> -DSYSCALL_SELECT_SELECT      // use __NR_select system call
> -DSYSCALL_SELECT_PSELECT6    // use __NR_pselect6 system call worker
> <default>                    // chose a _defined_ system call

I was meanwhile thinking of how we should handle the libc/syscall
multiplexing and I would be probably in favor of doing it on runtime
since I do not see any reason why we should generate test binary for
each syscall variant.

Rather than that I'm looking into having a multiplexer callback from the
new test library that would allow running the test function in a loop
for each possible syscall variant.

I will send a RFC patch ideally today and add you into CC.

Cyril Hrubis

More information about the ltp mailing list