Home
last modified time | relevance | path

Searched refs:NSEC_PER_SEC (Results 1 – 25 of 35) sorted by relevance

12

/external/linux-kselftest/tools/testing/selftests/timers/
Dvalid-adjtimex.c48 #define NSEC_PER_SEC 1000000000LL macro
216 tmx.time.tv_sec = offset / NSEC_PER_SEC; in set_offset()
217 tmx.time.tv_usec = offset % NSEC_PER_SEC; in set_offset()
221 tmx.time.tv_usec += NSEC_PER_SEC; in set_offset()
267 if (set_offset(NSEC_PER_SEC - 1, 1)) in validate_set_offset()
270 if (set_offset(-NSEC_PER_SEC + 1, 1)) in validate_set_offset()
273 if (set_offset(-NSEC_PER_SEC - 1, 1)) in validate_set_offset()
276 if (set_offset(5 * NSEC_PER_SEC, 1)) in validate_set_offset()
279 if (set_offset(-5 * NSEC_PER_SEC, 1)) in validate_set_offset()
282 if (set_offset(5 * NSEC_PER_SEC + NSEC_PER_SEC / 2, 1)) in validate_set_offset()
[all …]
Dnsleep-lat.c40 #define NSEC_PER_SEC 1000000000ULL macro
93 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add()
94 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add()
103 long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; in timespec_sub()
105 ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; in timespec_sub()
115 target.tv_sec = ns/NSEC_PER_SEC; in nanosleep_lat_test()
116 target.tv_nsec = ns%NSEC_PER_SEC; in nanosleep_lat_test()
171 while (length <= (NSEC_PER_SEC * 10)) { in main()
Dmqueue-lat.c45 #define NSEC_PER_SEC 1000000000ULL macro
53 long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; in timespec_sub()
55 ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; in timespec_sub()
62 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add()
63 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add()
Dalarmtimer-suspend.c59 #define NSEC_PER_SEC 1000000000ULL macro
60 #define UNREASONABLE_LAT (NSEC_PER_SEC * 5) /* hopefully we resume in 5 secs */
100 long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; in timespec_sub()
102 ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; in timespec_sub()
117 delta_ns -= NSEC_PER_SEC * SUSPEND_SECS * alarmcount; in sigalarm()
Draw_skew.c43 #define NSEC_PER_SEC 1000000000LL macro
60 return ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec; in ts_to_nsec()
67 ts.tv_sec = ns/NSEC_PER_SEC; in nsec_to_ts()
68 ts.tv_nsec = ns%NSEC_PER_SEC; in nsec_to_ts()
138 eppm = ((delta2-delta1)*NSEC_PER_SEC)/interval; in main()
Dnanosleep.c43 #define NSEC_PER_SEC 1000000000ULL macro
105 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add()
106 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add()
158 while (length <= (NSEC_PER_SEC * 10)) { in main()
Dset-timer-lat.c58 #define NSEC_PER_SEC 1000000000ULL macro
99 long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; in timespec_sub()
101 ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; in timespec_sub()
115 delta_ns -= NSEC_PER_SEC * TIMER_SECS * alarmcount; in sigalarm()
Dadjtick.c41 #define NSEC_PER_SEC 1000000000LL macro
57 return ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec; in ts_to_nsec()
64 ts.tv_sec = ns/NSEC_PER_SEC; in nsec_to_ts()
65 ts.tv_nsec = ns%NSEC_PER_SEC; in nsec_to_ts()
Dleap-a-day.c64 #define NSEC_PER_SEC 1000000000ULL macro
85 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add()
86 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add()
176 target = timespec_add(now, NSEC_PER_SEC/2); in test_hrtimer_failure()
366 ts.tv_nsec = NSEC_PER_SEC / 2; in main()
Dinconsistency-check.c45 #define NSEC_PER_SEC 1000000000ULL macro
145 delta = list[inconsistent].tv_sec * NSEC_PER_SEC; in consistency_test()
147 delta -= list[inconsistent+1].tv_sec * NSEC_PER_SEC; in consistency_test()
Dset-2038.c43 #define NSEC_PER_SEC 1000000000LL macro
46 #define KTIME_SEC_MAX (KTIME_MAX / NSEC_PER_SEC)
Dskew_consistency.c51 #define NSEC_PER_SEC 1000000000LL macro
Dchange_skew.c44 #define NSEC_PER_SEC 1000000000LL macro
/external/ltp/tools/pounder21/src/time_tests/
Dinconsistency-check.c30 #define NSEC_PER_SEC 1000000000ULL macro
89 delta = list[inconsistent].tv_sec * NSEC_PER_SEC; in main()
91 delta -= list[inconsistent + 1].tv_sec * NSEC_PER_SEC; in main()
/external/ltp/testcases/realtime/func/sched_jitter/
Dsched_jitter.c55 #define NSEC_PER_SEC 1000000000 macro
88 first = (unsigned long long)a.tv_sec * NSEC_PER_SEC + a.tv_nsec; in ts_sub()
89 second = (unsigned long long)b.tv_sec * NSEC_PER_SEC + b.tv_nsec; in ts_sub()
/external/ltp/testcases/kernel/timers/include/
Dcommon_timers.h14 #ifndef NSEC_PER_SEC
15 #define NSEC_PER_SEC (1000000000L) macro
/external/libnetfilter_conntrack/include/internal/
Dinternal.h75 #ifndef NSEC_PER_SEC
76 #define NSEC_PER_SEC 1000000000L macro
/external/dhcpcd-6.8.2/
Dcommon.h56 #define NSEC_PER_SEC 1000000000L macro
91 while ((tv)->tv_nsec >= NSEC_PER_SEC) { \
93 (tv)->tv_nsec -= NSEC_PER_SEC; \
Dcommon.c114 ts->tv_sec = nano / NSEC_PER_SEC; in get_monotonic()
115 ts->tv_nsec = nano % NSEC_PER_SEC; in get_monotonic()
118 ts->tv_nsec += NSEC_PER_SEC; in get_monotonic()
/external/ltp/testcases/kernel/timers/leapsec/
Dleapsec_timer.c149 const struct timespec sleeptime = { 0, NSEC_PER_SEC / 2 }; in run_leapsec()
193 start.tv_sec += start.tv_nsec / NSEC_PER_SEC; in run_leapsec()
194 start.tv_nsec = start.tv_nsec % NSEC_PER_SEC; in run_leapsec()
/external/autotest/client/tests/signaltest/src/
Dsignaltest.c37 #define NSEC_PER_SEC 1000000000 macro
74 while (ts->tv_nsec >= NSEC_PER_SEC) { in tsnorm()
75 ts->tv_nsec -= NSEC_PER_SEC; in tsnorm()
/external/compiler-rt/lib/asan/tests/
Dasan_mac_test_helpers.mm146 dispatch_time(DISPATCH_TIME_NOW, 1LL * NSEC_PER_SEC);
169 dispatch_time(DISPATCH_TIME_NOW, 1LL * NSEC_PER_SEC);
186 dispatch_time(DISPATCH_TIME_NOW, 1LL * NSEC_PER_SEC);
/external/libnetfilter_conntrack/src/conntrack/
Dsnprintf_default.c255 time_t start = (time_t)(ct->timestamp.start / NSEC_PER_SEC); in __snprintf_timestamp_start()
267 time_t stop = (time_t)(ct->timestamp.stop / NSEC_PER_SEC); in __snprintf_timestamp_stop()
284 stop = (time_t)(ct->timestamp.stop / NSEC_PER_SEC); in __snprintf_timestamp_delta()
286 delta_time = stop - (time_t)(ct->timestamp.start / NSEC_PER_SEC); in __snprintf_timestamp_delta()
/external/ltp/testcases/kernel/timers/timer_settime/
Dtimer_settime03.c150 new_set.it_value.tv_nsec = NSEC_PER_SEC + 1; in setup_test()
/external/ltp/testcases/kernel/timers/clock_settime/
Dclock_settime03.c138 spec.tv_nsec = NSEC_PER_SEC + 1; in setup_test()

12