/third_party/eudev/src/shared/ |
D | time-util.h | 25 typedef uint64_t nsec_t; typedef 37 #define NSEC_INFINITY ((nsec_t) -1) 42 #define NSEC_PER_SEC ((nsec_t) 1000000000ULL) 43 #define NSEC_PER_MSEC ((nsec_t) 1000000ULL) 44 #define NSEC_PER_USEC ((nsec_t) 1000ULL) 47 #define NSEC_PER_MINUTE ((nsec_t) (60ULL*NSEC_PER_SEC)) 49 #define NSEC_PER_HOUR ((nsec_t) (60ULL*NSEC_PER_MINUTE)) 51 #define NSEC_PER_DAY ((nsec_t) (24ULL*NSEC_PER_HOUR)) 53 #define NSEC_PER_WEEK ((nsec_t) (7ULL*NSEC_PER_DAY)) 55 #define NSEC_PER_MONTH ((nsec_t) (2629800ULL*NSEC_PER_SEC)) [all …]
|
/third_party/ltp/testcases/realtime/include/ |
D | librttest.h | 77 typedef unsigned long long nsec_t; typedef 299 void nsec_to_ts(nsec_t ns, struct timespec *ts); 304 int ts_to_nsec(struct timespec *ts, nsec_t *ns); 311 void rt_nanosleep(nsec_t ns); 316 void rt_nanosleep_until(nsec_t ns); 320 nsec_t rt_gettime(void);
|
/third_party/ltp/testcases/realtime/func/sched_latency/ |
D | sched_latency.c | 66 nsec_t start; 67 nsec_t end; 71 static nsec_t period = DEF_PERIOD; 120 nsec_t delay, avg_delay = 0, start_delay, min_delay = -1ULL, max_delay = in periodic_thread() 123 nsec_t next = 0, now = 0, sched_delta = 0, delta = 0, prev = in periodic_thread() 169 nsec_t new_now; in periodic_thread() 179 (now - iter_start - (nsec_t) (i + 1) * period) / NS_PER_US; in periodic_thread()
|
/third_party/ltp/testcases/realtime/func/async_handler/ |
D | async_handler_tsc.c | 58 nsec_t start; 59 nsec_t end; 98 nsec_t ns_start; in tsc_period_ps() 99 nsec_t ns_end; in tsc_period_ps()
|
D | async_handler.c | 52 static nsec_t start; 53 static nsec_t end;
|
/third_party/ltp/testcases/realtime/lib/ |
D | librttest.c | 94 nsec_t start, end; in calibrate_busyloop() 475 int ts_to_nsec(struct timespec *ts, nsec_t * ns) in ts_to_nsec() 492 *ns = (nsec_t) ts->tv_sec * NS_PER_SEC + ts->tv_nsec; in ts_to_nsec() 496 void nsec_to_ts(nsec_t ns, struct timespec *ts) in nsec_to_ts() 521 void rt_nanosleep_until(nsec_t ns) in rt_nanosleep_until() 535 void rt_nanosleep(nsec_t ns) in rt_nanosleep() 548 nsec_t rt_gettime(void) in rt_gettime() 551 nsec_t ns; in rt_gettime() 575 nsec_t start, now; in busy_work_us()
|
/third_party/ltp/testcases/realtime/func/prio-wake/ |
D | prio-wake.c | 64 static volatile nsec_t beginrun; 107 nsec_t start; in master_thread() 137 nsec_t start, wake; in worker_thread()
|
/third_party/ltp/testcases/realtime/func/periodic_cpu_load/ |
D | periodic_cpu_load_single.c | 86 int periodic_thread(nsec_t period, int iterations, int loops) in periodic_thread() 95 nsec_t next, now; in periodic_thread() 96 nsec_t exe_start, exe_end, exe_time; in periodic_thread()
|
D | periodic_cpu_load.c | 125 nsec_t period = parg->period; in periodic_thread() 129 nsec_t next, now; in periodic_thread() 130 nsec_t exe_start, exe_end, exe_time; in periodic_thread()
|
/third_party/ltp/testcases/realtime/func/pi_perf/ |
D | pi_perf.c | 76 nsec_t low_unlock, max_pi_delay; 135 nsec_t low_start, low_hold; in low_prio_thread() 173 nsec_t high_start, high_end, high_get_lock; in high_prio_thread()
|
/third_party/ltp/testcases/realtime/func/gtod_latency/ |
D | gtod_infinite.c | 106 nsec_t s_time, e_time, diff_time; in main() 107 nsec_t max_time = START_MAX; in main()
|
/third_party/ltp/testcases/realtime/func/pi-tests/ |
D | testpi-7.c | 158 static nsec_t low_drop_time; 226 nsec_t start, now; in high_prio_rt_thread()
|
/third_party/ltp/testcases/realtime/func/matrix_mult/ |
D | matrix_mult.c | 115 nsec_t start, end, delta; in matrix_mult_record() 175 nsec_t start, end; in main_thread()
|
/third_party/ltp/testcases/realtime/func/hrtimer-prio/ |
D | hrtimer-prio.c | 126 nsec_t start, end; in timer_thread()
|
/third_party/ltp/testcases/realtime/func/pthread_kill_latency/ |
D | pthread_kill_latency.c | 67 nsec_t begin, end;
|
/third_party/ltp/testcases/realtime/func/prio-preempt/ |
D | prio-preempt.c | 166 nsec_t pstart, pend; in worker_thread()
|