Home
last modified time | relevance | path

Searched refs:timespec (Results 1 – 25 of 854) sorted by relevance

12345678910>>...35

/external/ltp/include/
Dtst_timer.h40 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()
98 static inline struct timespec tst_ms_to_timespec(long long ms) in tst_ms_to_timespec()
100 struct timespec ret; in tst_ms_to_timespec()
111 static inline struct timespec tst_us_to_timespec(long long us) in tst_us_to_timespec()
113 struct timespec ret; in tst_us_to_timespec()
124 static inline int tst_timespec_lt(struct timespec t1, struct timespec t2) in tst_timespec_lt()
135 static inline struct timespec tst_timespec_add_us(struct timespec t, in tst_timespec_add_us()
152 static inline struct timespec tst_timespec_diff(struct timespec t1, in tst_timespec_diff()
153 struct timespec t2) in tst_timespec_diff()
[all …]
/external/adhd/cras/src/common/
Dcras_util.h41 struct timespec *t) in cras_frames_to_time()
51 struct timespec *t) in cras_frames_to_time_precise()
60 static inline unsigned int cras_time_to_frames(const struct timespec *t, in cras_time_to_frames()
89 static inline void subtract_timespecs(const struct timespec *end, in subtract_timespecs()
90 const struct timespec *beg, in subtract_timespecs()
91 struct timespec *diff) in subtract_timespecs()
106 static inline void add_timespecs(struct timespec *a, in add_timespecs()
107 const struct timespec *b) in add_timespecs()
119 static inline void cras_timespec_to_timespec(struct timespec *dest, in cras_timespec_to_timespec()
130 struct timespec tp; in cras_clock_gettime()
[all …]
/external/ltp/testcases/kernel/timers/leapsec/
Dleapsec_timer.c41 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/
Draw_skew.c46 unsigned long long ts_to_nsec(struct timespec ts) in ts_to_nsec()
51 struct timespec nsec_to_ts(long long ns) in nsec_to_ts()
53 struct timespec ts; in nsec_to_ts()
60 long long diff_timespec(struct timespec start, struct timespec end) in diff_timespec()
69 void get_monotonic_and_raw(struct timespec *mon, struct timespec *raw) in get_monotonic_and_raw()
71 struct timespec start, mid, end; in get_monotonic_and_raw()
94 struct timespec mon, raw, start, end; in main()
Dadjtick.c44 unsigned long long ts_to_nsec(struct timespec ts) in ts_to_nsec()
49 struct timespec nsec_to_ts(long long ns) in nsec_to_ts()
51 struct timespec ts; in nsec_to_ts()
59 long long diff_timespec(struct timespec start, struct timespec end) in diff_timespec()
69 void get_monotonic_and_raw(struct timespec *mon, struct timespec *raw) in get_monotonic_and_raw()
71 struct timespec start, mid, end; in get_monotonic_and_raw()
98 struct timespec mon_start, raw_start, mon_end, raw_end; in get_ppm_drift()
169 struct timespec raw; in main()
Dmqueue-lat.c40 long long timespec_sub(struct timespec a, struct timespec b) in timespec_sub()
48 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in timespec_add()
63 struct timespec start, end, now, target; in mqueue_lat_test()
Dleap-a-day.c60 static inline int in_order(struct timespec a, struct timespec b) in in_order()
71 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in timespec_add()
162 struct timespec now, target; in test_hrtimer_failure()
213 struct timespec ts; in main()
238 struct timespec ts; in main()
331 struct timespec tai; in main()
Dnanosleep.c80 static inline int in_order(struct timespec a, struct timespec b) in in_order()
91 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in timespec_add()
103 struct timespec now, target, rel; in nanosleep_test()
Dnsleep-lat.c79 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in timespec_add()
90 long long timespec_sub(struct timespec a, struct timespec b) in timespec_sub()
100 struct timespec start, end, target; in nanosleep_lat_test()
/external/ltp/testcases/realtime/include/
Dlibrttest.h285 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/adhd/cras/src/server/
Dcras_tm.c19 struct timespec ts;
33 static inline void add_ms_ts(struct timespec *ts, unsigned int ms) in add_ms_ts()
47 static inline int timespec_sooner(const struct timespec *a, in timespec_sooner()
48 const struct timespec *b) in timespec_sooner()
101 int cras_tm_get_next_timeout(const struct cras_tm *tm, struct timespec *ts) in cras_tm_get_next_timeout()
104 struct timespec now; in cras_tm_get_next_timeout()
105 struct timespec *min; in cras_tm_get_next_timeout()
129 struct timespec now; in cras_tm_call_callbacks()
Ddev_stream.h47 void *dev_ptr, struct timespec *cb_ts);
156 const struct timespec *now);
171 struct timespec *level_tstamp,
172 struct timespec *wake_time_out);
180 static inline const struct timespec *
189 static inline const struct timespec *
Drate_estimator.h39 struct timespec window_start_ts;
40 struct timespec window_size;
55 const struct timespec *window_size,
79 struct timespec *now);
Dcras_rstream.h82 struct timespec next_cb_ts;
83 struct timespec sleep_interval_ts;
84 struct timespec last_fetch_ts;
85 struct timespec longest_fetch_interval;
256 const struct timespec *now);
260 const struct timespec *now);
/external/adhd/cras/src/tests/
Drate_estimator_unittest.cc11 static struct timespec window = {
18 struct timespec t = { in TEST()
47 struct timespec t = { in TEST()
79 struct timespec t = { in TEST()
110 struct timespec t; in TEST()
139 struct timespec t; in TEST()
166 struct timespec t; in TEST()
168 static struct timespec this_window = { in TEST()
Dcras_tm_unittest.cc29 static struct timespec time_now;
42 struct timespec ts; in TEST_F()
57 struct timespec ts; in TEST_F()
85 struct timespec ts; in TEST_F()
113 struct timespec ts; in TEST_F()
188 int clock_gettime(clockid_t clk_id, struct timespec *tp) { in clock_gettime()
Dutil_unittest.cc16 static std::vector<struct timespec> time_now;
171 struct timespec t; in TEST()
191 struct timespec t; in TEST()
220 struct timespec ts; in TEST()
248 struct timespec t, tn; in TEST()
271 struct timespec timeout; in TEST()
313 int clock_gettime(clockid_t clk_id, struct timespec *tp) { in clock_gettime()
314 std::vector<struct timespec>::iterator i = time_now.begin(); in clock_gettime()
/external/ltp/testcases/kernel/syscalls/clock_nanosleep/
Dclock_nanosleep01.c46 struct timespec rq;
62 .rq = (struct timespec) {.tv_sec = 0, .tv_nsec = -1},
70 .rq = (struct timespec) {.tv_sec = 0, .tv_nsec = 1000000000},
78 .rq = (struct timespec) {.tv_sec = 0, .tv_nsec = 500000000},
86 .rq = (struct timespec) {.tv_sec = 10, .tv_nsec = 0},
100 struct timespec rm = {0}; in do_test()
/external/perfetto/src/base/
Dtime_unittest.cc31 struct timespec ts = ToPosixTimespec(TimeMillis(0)); in TEST()
36 struct timespec ts = ToPosixTimespec(TimeMillis(1)); in TEST()
41 struct timespec ts = ToPosixTimespec(TimeMillis(12345)); in TEST()
46 struct timespec ts = ToPosixTimespec(TimeMillis(1000000000001LL)); in TEST()
/external/ltp/testcases/kernel/syscalls/utils/
Dmq_timed.h27 struct timespec *rq;
36 static pid_t set_sig(struct timespec *ts) in set_sig()
44 static void set_timeout(struct timespec *ts) in set_timeout()
55 &((struct timespec){0})) < 0) in send_msg()
/external/ltp/testcases/realtime/lib/
Dlibrttest.c413 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/autotest/client/tests/tracing_microbenchmark/src/
Dgetuid_microbench.c10 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/adhd/cras/src/libcras/
Dcras_client.h81 const struct timespec *sample_time,
104 const struct timespec *captured_time,
105 const struct timespec *playback_time,
840 struct timespec *ts);
866 int cras_client_calc_playback_latency(const struct timespec *sample_time,
867 struct timespec *delay);
878 int cras_client_calc_capture_latency(const struct timespec *sample_time,
879 struct timespec *delay);
/external/ltp/testcases/realtime/func/thread_clock/
Dtc-2.c56 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/perfetto/include/perfetto/base/
Dtime.h41 inline TimeNanos FromPosixTimespec(const struct timespec& ts) { in FromPosixTimespec()
50 struct timespec ts = {}; in GetTimeInternalNs()
105 inline struct timespec ToPosixTimespec(TimeMillis time) { in ToPosixTimespec()
106 struct timespec ts {}; in ToPosixTimespec()

12345678910>>...35