mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-28 15:13:55 +08:00
6e8b285bcd
This change adds the skew_consistency test, which twists the ADJ_FREQUENCY knob back and forth and watches for timekeeping inconsistencies. Cc: Shuah Khan <shuahkh@osg.samsung.com> Cc: Prarit Bhargava <prarit@redhat.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Richard Cochran <richardcochran@gmail.com> Signed-off-by: John Stultz <john.stultz@linaro.org> Tested-by: Prarit Bhargava <prarit@redhat.com> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
34 lines
807 B
Makefile
34 lines
807 B
Makefile
CC = $(CROSS_COMPILE)gcc
|
|
BUILD_FLAGS = -DKTEST
|
|
CFLAGS += -O3 -Wl,-no-as-needed -Wall $(BUILD_FLAGS)
|
|
LDFLAGS += -lrt -lpthread
|
|
bins = posix_timers nanosleep inconsistency-check nsleep-lat raw_skew \
|
|
set-timer-lat threadtest mqueue-lat valid-adjtimex \
|
|
alarmtimer-suspend change_skew skew_consistency
|
|
|
|
all: ${bins}
|
|
|
|
# these are all "safe" tests that don't modify
|
|
# system time or require escalated privledges
|
|
run_tests: all
|
|
./posix_timers
|
|
./nanosleep
|
|
./nsleep-lat
|
|
./set-timer-lat
|
|
./mqueue-lat
|
|
./inconsistency-check
|
|
./raw_skew
|
|
./threadtest -t 30 -n 8
|
|
|
|
# these tests require escalated privledges
|
|
# and may modify the system time or trigger
|
|
# other behavior like suspend
|
|
run_destructive_tests: run_tests
|
|
./alarmtimer-suspend
|
|
./valid-adjtimex
|
|
./change_skew
|
|
./skew_consistency
|
|
|
|
clean:
|
|
rm -f ${bins}
|