/external/linux-kselftest/tools/testing/selftests/timers/ |
D | valid-adjtimex.c | 48 #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 …]
|
D | nsleep-lat.c | 40 #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()
|
D | mqueue-lat.c | 45 #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()
|
D | alarmtimer-suspend.c | 59 #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()
|
D | raw_skew.c | 43 #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()
|
D | nanosleep.c | 43 #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()
|
D | set-timer-lat.c | 58 #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()
|
D | adjtick.c | 41 #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()
|
D | leap-a-day.c | 64 #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()
|
D | inconsistency-check.c | 45 #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()
|
D | set-2038.c | 43 #define NSEC_PER_SEC 1000000000LL macro 46 #define KTIME_SEC_MAX (KTIME_MAX / NSEC_PER_SEC)
|
D | skew_consistency.c | 51 #define NSEC_PER_SEC 1000000000LL macro
|
D | change_skew.c | 44 #define NSEC_PER_SEC 1000000000LL macro
|
/external/ltp/tools/pounder21/src/time_tests/ |
D | inconsistency-check.c | 30 #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/ |
D | sched_jitter.c | 55 #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/ |
D | common_timers.h | 14 #ifndef NSEC_PER_SEC 15 #define NSEC_PER_SEC (1000000000L) macro
|
/external/libnetfilter_conntrack/include/internal/ |
D | internal.h | 75 #ifndef NSEC_PER_SEC 76 #define NSEC_PER_SEC 1000000000L macro
|
/external/dhcpcd-6.8.2/ |
D | common.h | 56 #define NSEC_PER_SEC 1000000000L macro 91 while ((tv)->tv_nsec >= NSEC_PER_SEC) { \ 93 (tv)->tv_nsec -= NSEC_PER_SEC; \
|
D | common.c | 114 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/ |
D | leapsec_timer.c | 149 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/ |
D | signaltest.c | 37 #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/ |
D | asan_mac_test_helpers.mm | 146 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/ |
D | snprintf_default.c | 255 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/ |
D | timer_settime03.c | 150 new_set.it_value.tv_nsec = NSEC_PER_SEC + 1; in setup_test()
|
/external/ltp/testcases/kernel/timers/clock_settime/ |
D | clock_settime03.c | 138 spec.tv_nsec = NSEC_PER_SEC + 1; in setup_test()
|