linux/tools/testing/selftests/timers
John Stultz e40d3709c0 selftests/timers: Improve skew_consistency by testing with other clockids
Lei Chen reported a bug with CLOCK_MONOTONIC_COARSE having inconsistencies
when NTP is adjusting the clock frequency.

This has gone seemingly undetected for ~15 years, illustrating a clear gap
in our testing.

The skew_consistency test is intended to catch this sort of problem, but
was focused on only evaluating CLOCK_MONOTONIC, and thus missed the problem
on CLOCK_MONOTONIC_COARSE.

So adjust the test to run with all clockids for 60 seconds each instead of
10 minutes with just CLOCK_MONOTONIC.

Reported-by: Lei Chen <lei.chen@smartx.com>
Signed-off-by: John Stultz <jstultz@google.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250320200306.1712599-2-jstultz@google.com
Closes: https://lore.kernel.org/lkml/20250310030004.3705801-1-lei.chen@smartx.com/
2025-03-21 19:16:18 +01:00
..
.gitignore
adjtick.c selftests:timers: remove local CLOCKID defines 2024-10-14 16:15:13 -06:00
alarmtimer-suspend.c selftests:timers: remove local CLOCKID defines 2024-10-14 16:15:13 -06:00
change_skew.c selftests/timers: Remove unused NSEC_PER_SEC macro 2024-09-06 13:37:41 -06:00
clocksource-switch.c selftests: timers: clocksource-switch: Adapt progress to kselftest framework 2025-01-14 17:06:31 -07:00
freq-step.c
inconsistency-check.c selftests:timers: remove local CLOCKID defines 2024-10-14 16:15:13 -06:00
leap-a-day.c selftests: timers: Remove local NSEC_PER_SEC and USEC_PER_SEC defines 2024-10-14 16:15:12 -06:00
leapcrash.c
Makefile selftests: timers: Remove local NSEC_PER_SEC and USEC_PER_SEC defines 2024-10-14 16:15:12 -06:00
mqueue-lat.c selftests: timers: Remove local NSEC_PER_SEC and USEC_PER_SEC defines 2024-10-14 16:15:12 -06:00
nanosleep.c selftests:timers: remove local CLOCKID defines 2024-10-14 16:15:13 -06:00
nsleep-lat.c selftests:timers: remove local CLOCKID defines 2024-10-14 16:15:13 -06:00
posix_timers.c selftests/timers/posix-timers: Add a test for exact allocation mode 2025-03-13 12:07:18 +01:00
raw_skew.c selftests:timers: remove local CLOCKID defines 2024-10-14 16:15:13 -06:00
rtcpie.c
set-2038.c selftests: timers: Remove local NSEC_PER_SEC and USEC_PER_SEC defines 2024-10-14 16:15:12 -06:00
set-tai.c
set-timer-lat.c selftests:timers: remove local CLOCKID defines 2024-10-14 16:15:13 -06:00
set-tz.c
settings
skew_consistency.c selftests/timers: Improve skew_consistency by testing with other clockids 2025-03-21 19:16:18 +01:00
threadtest.c kselftest: timers: Fix const correctness 2024-08-21 00:48:48 -06:00
valid-adjtimex.c selftests: timers: Remove local NSEC_PER_SEC and USEC_PER_SEC defines 2024-10-14 16:15:12 -06:00