[LTP] [PATCH v4 2/2] Add clock_settime04 test

Andrea Cervesato andrea.cervesato@suse.com
Thu Jul 31 11:41:48 CEST 2025


On 7/29/25 4:02 PM, Cyril Hrubis wrote:
> Here as well, SAFE_CLOCK_GETTIME() uses struct timespec as defined by
> libc, so we have to either use syscall that corresponds to the
> begin->type (tv->clock_gettime), or covert the value from
> SAFE_CLOCK_GETTIME() into the right type. I guess that it would look
> like:

Why not just going back to the original idea in v1, where we are using 
the clock_gettime/settime corresponding to the right libc?

- Andrea



More information about the ltp mailing list