linux-loongson/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 .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
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 selftests: timers: ksft_exit functions do not return 2024-05-06 13:57:21 -06:00
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 selftests: timers: ksft_exit functions do not return 2024-05-06 13:57:21 -06:00
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 selftests/timers: remove unused irqcount variable 2024-07-11 11:23:54 -06:00
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 selftests: timers: ksft_exit functions do not return 2024-05-06 13:57:21 -06:00
set-timer-lat.c selftests:timers: remove local CLOCKID defines 2024-10-14 16:15:13 -06:00
set-tz.c selftests: timers: ksft_exit functions do not return 2024-05-06 13:57:21 -06:00
settings selftests/timers: Turn off timeout setting 2020-08-20 15:49:28 -06:00
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