[LTP] [PATCH V3 2/2] syscalls/clock_gettime: Add test to check bug during successive readings
Viresh Kumar
viresh.kumar@linaro.org
Fri Jun 12 10:17:38 CEST 2020
On 12-06-20, 10:07, Arnd Bergmann wrote:
> There was one more thing I had originally suggested as an optional
> thing to test for:
>
> - ensure that CLOCK_REALTIME_COARSE/CLOCK_MONOTONIC_COARSE
> is at most clock_getres() nanoseconds behind
> CLOCK_REALTIME/CLOCK_MONOTONIC, and never ahead of it.
>
> It's probably too much to put into this test, and I'm not sure we really
> need to test for it. Are you still looking into this, or do you think we should
> stop here?
Sorry, I missed replying to it. When you suggest something, you
suggest too much (which is good) and I get lost implementing all of it
:)
Can you have a look at the attached test? This is already merged in
LTP and does what you are asking to some level (not exactly though)
and so I thought we don't need to do it again.
--
viresh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clock_gettime03.c
Type: text/x-csrc
Size: 3613 bytes
Desc: not available
URL: <http://lists.linux.it/pipermail/ltp/attachments/20200612/5971a5bc/attachment.c>
More information about the ltp
mailing list