linux_dsm_epyc7002/tools/testing/selftests/timers
John Stultz 51a16c1e88 selftest: Timers: Avoid signal deadlock in leap-a-day
In 0c4a5fc95b (Add leap-second timer edge testing to
leap-a-day.c), we added a timer to the test which checks to make
sure timers near the leapsecond edge behave correctly.

However, the output generated from the timer uses ctime_r, which
isn't async-signal safe, and should that signal land while the
main test is using ctime_r to print its output, its possible for
the test to deadlock on glibc internal locks.

Thus this patch reworks the output to avoid using ctime_r in
the signal handler.

Signed-off-by: John Stultz <john.stultz@linaro.org>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Daniel Bristot de Oliveira <bristot@redhat.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Jiri Bohac <jbohac@suse.cz>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: Ingo Molnar <mingo@kernel.org>
Link: http://lkml.kernel.org/r/1434565003-3386-1-git-send-email-john.stultz@linaro.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2015-06-18 15:28:14 +02:00
..
alarmtimer-suspend.c selftests/timers: Add alarmtimer-suspend test from timetests suite 2015-03-12 13:22:14 -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
Makefile Documentation, split up rtc.txt into documentation and test file 2015-03-24 22:01:58 -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