OpenCloudOS-Kernel/tools/testing/selftests/timers
John Stultz 1416270f4a selftest: timers: Tweak raw_skew to SKIP when ADJ_OFFSET/other clock adjustments are in progress
In the past we've warned when ADJ_OFFSET was in progress, usually
caused by ntpd or some other time adjusting daemon running in non
steady sate, which can cause the skew calculations to be
incorrect.

Thus, this patch checks to see if the clock was being adjusted
when we fail so that we don't cause false negatives.

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Miroslav Lichvar <mlichvar@redhat.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Cc: linux-kselftest@vger.kernel.org
Suggested-by: Miroslav Lichvar <mlichvar@redhat.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
---
v2: Widened the checks to look for other clock adjustments that
    could happen, as suggested by Miroslav
v3: Fixed up commit message
2018-07-10 12:43:21 -07:00
..
.gitignore selftests: move RTC tests to rtc subfolder 2018-05-30 15:21:51 -06:00
Makefile selftests: move RTC tests to rtc subfolder 2018-05-30 15:21:51 -06:00
adjtick.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
alarmtimer-suspend.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
change_skew.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
clocksource-switch.c selftests/timers: make loop consistent with array size 2017-08-25 10:00:51 -06:00
freq-step.c Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2017-09-04 13:06:34 -07:00
inconsistency-check.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
leap-a-day.c kselftests: timers: leap-a-day: Change default arguments to help test runs 2017-08-22 11:34:52 -06:00
leapcrash.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
mqueue-lat.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
nanosleep.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
nsleep-lat.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
posix_timers.c selftests/timers: Add missing error code assignment before test 2016-09-20 09:00:28 -06:00
raw_skew.c selftest: timers: Tweak raw_skew to SKIP when ADJ_OFFSET/other clock adjustments are in progress 2018-07-10 12:43:21 -07:00
rtcpie.c selftests: timers: rtcpie: restore previous PIE rate 2018-05-30 15:21:51 -06:00
set-2038.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
set-tai.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
set-timer-lat.c selftests: timers: set-timer-lat: Fix hang when testing unsupported alarms 2017-09-25 10:09:07 -06:00
set-tz.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
skew_consistency.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
threadtest.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
valid-adjtimex.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00