linux-sg2042/tools/testing/selftests/timers
John Stultz 6035519fcf timers, kselftest: Add 'adjtick' test to validate adjtimex() tick adjustments
Recently a kernel side NTP bug was fixed via the following commit:

  2619d7e9c9 ("time: Fix timekeeping_freqadjust()'s incorrect use of abs() instead of abs64()")

When the bug was reported it was difficult to detect, except by
tweaking the adjtimex tick value, and noticing how quickly the
adjustment took:

	https://lkml.org/lkml/2015/9/1/488

Thus this patch introduces a new test which manipulates the
adjtimex tick value and validates that the results are what we
expect.

Signed-off-by: John Stultz <john.stultz@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Miroslav Lichvar <mlichvar@redhat.com>
Cc: Nuno Gonçalves <nunojpg@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1444094217-20258-1-git-send-email-john.stultz@linaro.org
[ Tidied up the code and the changelog a bit. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2015-10-12 09:51:34 +02:00
..
.gitignore selftests/timers: Make git ignore all binaries in timers test suite 2015-05-26 15:58:06 -06:00
Makefile timers, kselftest: Add 'adjtick' test to validate adjtimex() tick adjustments 2015-10-12 09:51:34 +02:00
adjtick.c timers, kselftest: Add 'adjtick' test to validate adjtimex() tick adjustments 2015-10-12 09:51:34 +02:00
alarmtimer-suspend.c kselftests: timers: Check _ALARM clockids are supported before suspending 2015-05-26 15:58:07 -06:00
change_skew.c selftests/timers: Add change_skew test from timetest suite 2015-03-12 13:22:15 -06:00
clocksource-switch.c selftests/timers: Add clocksource-switch test from timetest suite 2015-03-12 13:22:15 -06:00
inconsistency-check.c kselftests: timers: Reduce default runtime on inconsistency-check and set-timer-lat 2015-03-31 13:44:32 -06:00
leap-a-day.c selftest: Timers: Avoid signal deadlock in leap-a-day 2015-06-18 15:28:14 +02:00
leapcrash.c selftests/timers: Add leapcrash test from the timetest suite 2015-03-12 13:22:16 -06:00
mqueue-lat.c selftests/timers: Add mqueue latency test from the timetest suite 2015-03-12 13:22:14 -06:00
nanosleep.c selftests/timers: Add nanosleep test from timetest suite 2015-03-12 13:22:13 -06:00
nsleep-lat.c selftests/timers: Add nsleep-lat test from timetest suite 2015-03-12 13:22:13 -06:00
posix_timers.c selftests/timers: Quiet warning due to lack of return check on brk 2015-03-12 13:22:12 -06:00
raw_skew.c selftests/timers: Add clock skew estimation test from timetest suite 2015-03-12 13:22:13 -06:00
rtctest.c tools, update rtctest.c to verify passage of time 2015-03-24 22:02:59 -06:00
set-2038.c selftests/timers: Add set-2038 test from timetest suite 2015-03-12 13:22:16 -06:00
set-tai.c selftests/timers: Add set-tai from the timetest suite 2015-03-12 13:22:16 -06:00
set-timer-lat.c kselftests: timers: Make set-timer-lat fail more gracefully for !CAP_WAKE_ALARM 2015-04-02 10:32:33 -06:00
skew_consistency.c selftests/timers: Add skew_consistency test from the timetests suite 2015-03-12 13:22:15 -06:00
threadtest.c kselftest/timers: Set default threadtest values to simplify execution scripts 2015-03-19 12:03:34 -06:00
valid-adjtimex.c selftests/timers: Add adjtimex validation test from timetest suite 2015-03-12 13:22:14 -06:00