/external/ltp/include/ |
D | tst_timer.h | 40 static inline long long tst_timespec_to_us(struct timespec t) in tst_timespec_to_us() 48 static inline long long tst_timespec_to_ms(struct timespec t) in tst_timespec_to_ms() 82 static inline int tst_timespec_lt(struct timespec t1, struct timespec t2) in tst_timespec_lt() 93 static inline struct timespec tst_timespec_add_us(struct timespec t, in tst_timespec_add_us() 110 static inline struct timespec tst_timespec_diff(struct timespec t1, in tst_timespec_diff() 111 struct timespec t2) in tst_timespec_diff() 113 struct timespec res; in tst_timespec_diff() 127 static inline long long tst_timespec_diff_us(struct timespec t1, in tst_timespec_diff_us() 128 struct timespec t2) in tst_timespec_diff_us() 133 static inline long long tst_timespec_diff_ms(struct timespec t1, in tst_timespec_diff_ms() [all …]
|
/external/bison/lib/ |
D | time.in.h | 72 # undef timespec 73 # define timespec rpl_timespec 74 struct timespec 110 (struct timespec const *__rqtp, struct timespec *__rmtp) 113 (struct timespec const *__rqtp, struct timespec *__rmtp)); 117 (struct timespec const *__rqtp, struct timespec *__rmtp) 121 (struct timespec const *__rqtp, struct timespec *__rmtp));
|
/external/ltp/testcases/kernel/timers/leapsec/ |
D | leapsec_timer.c | 41 static inline int in_order(struct timespec a, struct timespec b); 43 static const char *strtime(const struct timespec *now); 66 static inline int in_order(struct timespec a, struct timespec b) in in_order() 88 struct timespec now; in adjtimex_status() 107 static const char *strtime(const struct timespec *now) in strtime() 124 struct timespec now, target; in test_hrtimer_early_expiration() 149 const struct timespec sleeptime = { 0, NSEC_PER_SEC / 2 }; in run_leapsec() 150 struct timespec now, leap, start; in run_leapsec() 212 struct timespec now; in cleanup()
|
/external/linux-kselftest/tools/testing/selftests/timers/ |
D | adjtick.c | 55 unsigned long long ts_to_nsec(struct timespec ts) in ts_to_nsec() 60 struct timespec nsec_to_ts(long long ns) in nsec_to_ts() 62 struct timespec ts; in nsec_to_ts() 70 long long diff_timespec(struct timespec start, struct timespec end) in diff_timespec() 80 void get_monotonic_and_raw(struct timespec *mon, struct timespec *raw) in get_monotonic_and_raw() 82 struct timespec start, mid, end; in get_monotonic_and_raw() 109 struct timespec mon_start, raw_start, mon_end, raw_end; in get_ppm_drift() 180 struct timespec raw; in main()
|
D | raw_skew.c | 58 unsigned long long ts_to_nsec(struct timespec ts) in ts_to_nsec() 63 struct timespec nsec_to_ts(long long ns) in nsec_to_ts() 65 struct timespec ts; in nsec_to_ts() 72 long long diff_timespec(struct timespec start, struct timespec end) in diff_timespec() 81 void get_monotonic_and_raw(struct timespec *mon, struct timespec *raw) in get_monotonic_and_raw() 83 struct timespec start, mid, end; in get_monotonic_and_raw() 106 struct timespec mon, raw, start, end; in main()
|
D | mqueue-lat.c | 51 long long timespec_sub(struct timespec a, struct timespec b) in timespec_sub() 59 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in timespec_add() 74 struct timespec start, end, now, target; in mqueue_lat_test()
|
D | nanosleep.c | 91 static inline int in_order(struct timespec a, struct timespec b) in in_order() 102 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in timespec_add() 114 struct timespec now, target, rel; in nanosleep_test()
|
D | leap-a-day.c | 71 static inline int in_order(struct timespec a, struct timespec b) in in_order() 82 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in timespec_add() 173 struct timespec now, target; in test_hrtimer_failure() 223 struct timespec ts; in main() 248 struct timespec ts; in main() 341 struct timespec tai; in main()
|
D | nsleep-lat.c | 90 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in timespec_add() 101 long long timespec_sub(struct timespec a, struct timespec b) in timespec_sub() 111 struct timespec start, end, target; in nanosleep_lat_test()
|
D | alarmtimer-suspend.c | 65 struct timespec start_time; 98 long long timespec_sub(struct timespec a, struct timespec b) in timespec_sub() 111 struct timespec ts; in sigalarm()
|
/external/ltp/testcases/realtime/include/ |
D | librttest.h | 285 void ts_minus(struct timespec *ts_end, struct timespec *ts_start, struct timespec *ts_delta); 290 void ts_plus(struct timespec *ts_a, struct timespec *ts_b, struct timespec *ts_sum); 295 void ts_normalize(struct timespec *ts); 300 void nsec_to_ts(nsec_t ns, struct timespec *ts); 305 int ts_to_nsec(struct timespec *ts, nsec_t *ns);
|
/external/ltp/testcases/kernel/syscalls/clock_nanosleep/ |
D | clock_nanosleep01.c | 48 struct timespec rq; 64 .rq = (struct timespec) {.tv_sec = 0, .tv_nsec = 500000000}, 72 .rq = (struct timespec) {.tv_sec = 0, .tv_nsec = 500000000}, 80 .rq = (struct timespec) {.tv_sec = 0, .tv_nsec = -1}, 88 .rq = (struct timespec) {.tv_sec = 0, .tv_nsec = 1000000000}, 96 .rq = (struct timespec) {.tv_sec = 0, .tv_nsec = 500000000}, 104 .rq = (struct timespec) {.tv_sec = 10, .tv_nsec = 0}, 119 struct timespec rm = {0}; in do_test()
|
/external/bison/linux-lib/ |
D | time.h | 384 # undef timespec 385 # define timespec rpl_timespec macro 386 struct timespec struct 422 (struct timespec const *__rqtp, struct timespec *__rmtp) 425 (struct timespec const *__rqtp, struct timespec *__rmtp)); 429 (struct timespec const *__rqtp, struct timespec *__rmtp) 433 (struct timespec const *__rqtp, struct timespec *__rmtp));
|
/external/bison/darwin-lib/ |
D | time.h | 384 # undef timespec 385 # define timespec rpl_timespec macro 386 struct timespec struct 422 (struct timespec const *__rqtp, struct timespec *__rmtp) 425 (struct timespec const *__rqtp, struct timespec *__rmtp)); 429 (struct timespec const *__rqtp, struct timespec *__rmtp) 433 (struct timespec const *__rqtp, struct timespec *__rmtp));
|
/external/bison/m4/ |
D | time_h.m4 | 28 dnl Check whether 'struct timespec' is declared 34 AC_CACHE_CHECK([for struct timespec in <time.h>], 40 [[static struct timespec x; x.tv_sec = x.tv_nsec;]])], 50 AC_CACHE_CHECK([for struct timespec in <sys/time.h>], 56 [[static struct timespec x; x.tv_sec = x.tv_nsec;]])], 62 AC_CACHE_CHECK([for struct timespec in <pthread.h>], 68 [[static struct timespec x; x.tv_sec = x.tv_nsec;]])],
|
/external/autotest/client/tests/tracing_microbenchmark/src/ |
D | getuid_microbench.c | 10 void ts_subtract(struct timespec *result, in ts_subtract() 11 const struct timespec *time1, const struct timespec *time2) { in ts_subtract() 27 struct timespec start_time, end_time, elapsed_time; in main()
|
/external/ltp/testcases/kernel/syscalls/mq_timedreceive/ |
D | mq_timedreceive01.c | 34 static struct timespec timeout_ts; 35 static struct timespec eintr_ts; 40 struct timespec *rq; 132 .rq = &(struct timespec) {.tv_sec = -1, .tv_nsec = 0}, 140 .rq = &(struct timespec) {.tv_sec = 0, .tv_nsec = -1}, 148 .rq = &(struct timespec) {.tv_sec = 0, .tv_nsec = 1000000000}, 237 &((struct timespec){0})) < 0) in send_msg()
|
/external/ltp/testcases/realtime/lib/ |
D | librttest.c | 413 void ts_minus(struct timespec *ts_end, struct timespec *ts_start, in ts_minus() 414 struct timespec *ts_delta) in ts_minus() 427 void ts_plus(struct timespec *ts_a, struct timespec *ts_b, in ts_plus() 428 struct timespec *ts_sum) in ts_plus() 441 void ts_normalize(struct timespec *ts) in ts_normalize() 470 int ts_to_nsec(struct timespec *ts, nsec_t * ns) in ts_to_nsec() 472 struct timespec t; in ts_to_nsec() 491 void nsec_to_ts(nsec_t ns, struct timespec *ts) in nsec_to_ts() 518 struct timespec ts_sleep, ts_rem; in rt_nanosleep_until() 532 struct timespec ts_sleep, ts_rem; in rt_nanosleep() [all …]
|
/external/ltp/testcases/realtime/func/thread_clock/ |
D | tc-2.c | 56 struct timespec sleepts[NUMSLEEP]; 57 struct timespec workts[NUMWORK]; 93 struct timespec *ts = &workts[tid]; in workerthread() 115 struct timespec *ts = &sleepts[tid]; in sleeperthread() 181 struct timespec myts; in main()
|
/external/ltp/testcases/open_posix_testsuite/include/ |
D | timespec.h | 20 static long timespec_nsec_diff(struct timespec *t1, struct timespec *t2) in timespec_nsec_diff() 26 struct timespec *tmp; in timespec_nsec_diff()
|
/external/kernel-headers/original/uapi/linux/ |
D | time.h | 9 struct timespec { struct 35 struct timespec it_interval; /* timer period */ 36 struct timespec it_value; /* timer expiration */
|
/external/ltp/testcases/kernel/syscalls/clock_nanosleep2/ |
D | clock_nanosleep2_01.c | 35 const struct timespec *req, struct timespec *rem) in clock_nanosleep2() 42 struct timespec ts; in verify_clock_nanosleep2()
|
/external/ltp/testcases/realtime/func/gtod_latency/ |
D | gtod_latency.c | 219 long long timespec_subtract(struct timespec *a, struct timespec *b) in timespec_subtract() 237 struct timespec *start_data; in main() 238 struct timespec *stop_data; in main() 258 start_data = calloc(iterations, sizeof(struct timespec)); in main() 264 stop_data = calloc(iterations, sizeof(struct timespec)); in main()
|
/external/ltp/testcases/open_posix_testsuite/functional/timers/clocks/ |
D | twopsetclock.c | 33 struct timespec tpget, tsreset; in main() 43 struct timespec tschild; in main() 56 struct timespec tsparent; in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/ |
D | 8-1.c | 36 struct timespec tsT0, tssleep; in main() 52 struct timespec tsend; in main() 88 struct timespec tsreset; in main()
|