From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Date: Wed, 27 May 2020 11:49:05 +0200 Subject: [LTP] [PATCH V3 5/6] syscalls: Don't pass struct timespec to tst_syscall() In-Reply-To: References: Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it On Wed, May 27, 2020 at 11:43 AM Viresh Kumar wrote: > > There are compatibility issues here as we are calling the direct > syscalls (with tst_syscall()) with the "struct timespec" (which is a > libc definition). Over that, an architecture may not define > __NR_clock_getres (for example) and so we must have the fallback version > in place. > > This updates the tst_clock_*() routines in core libraries and adds > support for different syscall variants. > > Signed-off-by: Viresh Kumar I would have expected this to be simpler without going through struct tst_ts, but the implementation looks correct, and I suppose this is more consistent. Reviewed-by: Arnd Bergmann