Home
last modified time | relevance | path

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

1234567

/linux/tools/testing/selftests/vfio/
H A Dvfio_pci_device_init_perf_test.c20 struct timespec start;
21 struct timespec end;
67 static s64 to_ns(struct timespec ts) in to_ns()
72 static struct timespec to_timespec(s64 ns) in to_timespec()
74 struct timespec ts = { in to_timespec()
82 static struct timespec timespec_sub(struct timespec a, struct timespec b) in timespec_sub()
87 static struct timespec timespec_min(struct timespec a, struct timespec b) in timespec_min()
92 static struct timespec timespec_max(struct timespec a, struct timespec b) in timespec_max()
116 struct timespec start = to_timespec(INT64_MAX), end = {}; in TEST_F()
117 struct timespec min = to_timespec(INT64_MAX); in TEST_F()
[all …]
/linux/tools/include/nolibc/
H A Dtime.h28 * int clock_getres(clockid_t clockid, struct timespec *res);
29 * int clock_gettime(clockid_t clockid, struct timespec *tp); in __nolibc_timespec_kernel_to_user()
30 * int clock_settime(clockid_t clockid, const struct timespec *tp); in __nolibc_timespec_kernel_to_user()
31 * int clock_nanosleep(clockid_t clockid, int flags, const struct timespec *rqtp, in __nolibc_timespec_kernel_to_user()
32 * struct timespec *rmtp) in __nolibc_timespec_kernel_to_user()
36 int _sys_clock_getres(clockid_t clockid, struct timespec *res)
48 int clock_getres(clockid_t clockid, struct timespec *res) in sys_clock_getres()
54 int _sys_clock_gettime(clockid_t clockid, struct timespec *tp) in sys_clock_getres()
66 int clock_gettime(clockid_t clockid, struct timespec *tp) in sys_clock_gettime()
72 int _sys_clock_settime(clockid_t clockid, struct timespec *t in sys_clock_gettime()
[all...]
/linux/tools/testing/selftests/kvm/lib/
H A Dtest_util.c86 s64 timespec_to_ns(struct timespec ts) in timespec_to_ns()
91 struct timespec timespec_add_ns(struct timespec ts, s64 ns) in timespec_add_ns()
93 struct timespec res; in timespec_add_ns()
102 struct timespec timespec_add(struct timespec ts1, struct timespec ts2) in timespec_add()
106 return timespec_add_ns((struct timespec){0}, ns1 + ns2); in timespec_add()
109 struct timespec timespec_sub(struct timespec ts1, struct timespec ts2) in timespec_sub()
113 return timespec_add_ns((struct timespec){0}, ns1 - ns2); in timespec_sub()
116 struct timespec timespec_elapsed(struct timespec start) in timespec_elapsed()
118 struct timespec end; in timespec_elapsed()
124 struct timespec timespec_div(struct timespec ts, int divisor) in timespec_div()
[all …]
/linux/tools/testing/selftests/kvm/include/
H A Dtest_util.h104 s64 timespec_to_ns(struct timespec ts);
105 struct timespec timespec_add_ns(struct timespec ts, s64 ns);
106 struct timespec timespec_add(struct timespec ts1, struct timespec ts2);
107 struct timespec timespec_sub(struct timespec ts1, struct timespec ts2);
108 struct timespec timespec_elapsed(struct timespec start);
109 struct timespec timespec_div(struct timespec ts, int divisor);
/linux/tools/testing/selftests/timers/
H A Draw_skew.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()
58 long long diff_timespec(struct timespec start, struct timespec end) in diff_timespec()
67 void get_monotonic_and_raw(struct timespec *mon, struct timespec *raw) in get_monotonic_and_raw()
69 struct timespec start, mid, end; in get_monotonic_and_raw()
92 struct timespec mon, raw, start, end; in main()
H A Dadjtick.c40 unsigned long long ts_to_nsec(struct timespec ts) in ts_to_nsec()
45 struct timespec nsec_to_ts(long long ns) in nsec_to_ts()
47 struct timespec ts; in nsec_to_ts()
55 long long diff_timespec(struct timespec start, struct timespec end) in diff_timespec()
65 void get_monotonic_and_raw(struct timespec *mon, struct timespec *raw) in get_monotonic_and_raw()
67 struct timespec start, mid, end; in get_monotonic_and_raw()
94 struct timespec mon_start, raw_start, mon_end, raw_end; in get_ppm_drift()
166 struct timespec ra in main()
[all...]
H A Dnanosleep.c34 static inline int in_order(struct timespec a, struct timespec b)
45 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in clockstring()
57 struct timespec now, target, rel; in clockstring()
92 struct timespec rqtp = {}, rmtp = {}; in nanosleep_test()
129 if (!in_order((struct timespec) {}, rmtp)) in nanosleep_test_remaining()
H A 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()
H A Dnsleep-lat.c32 struct timespec timespec_add(struct timespec ts, unsigned long long ns)
43 long long timespec_sub(struct timespec a, struct timespec b) in clockstring()
53 struct timespec start, end, target; in clockstring()
H A Dleap-a-day.c63 static inline int in_order(struct timespec a, struct timespec b) in in_order()
74 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in timespec_add()
165 struct timespec now, target; in test_hrtimer_failure()
216 struct timespec ts; in main()
241 struct timespec ts; in main()
334 struct timespec tai; in main()
H A Dalarmtimer-suspend.c40 struct timespec start_time;
42 long long timespec_sub(struct timespec a, struct timespec b)
55 struct timespec ts; in clockstring()
H A Dinconsistency-check.c40 static inline int in_order(struct timespec a, struct timespec b) in clockstring()
56 struct timespec list[CALLS_PER_LOOP]; in clockstring()
117 struct timespec ts; in consistency_test()
H A Dthreadtest.c37 struct timespec global_list[LISTSIZE];
41 void checklist(const struct timespec *list, int size) in checklist()
44 const struct timespec *a, *b; in checklist()
105 struct timespec my_list[LISTSIZE]; in independent_thread()
/linux/tools/testing/selftests/kvm/
H A Ddirty_log_perf_test.c42 struct timespec start; in vcpu_worker()
43 struct timespec ts_diff; in vcpu_worker()
44 struct timespec total = (struct timespec){0}; in vcpu_worker()
45 struct timespec avg; in vcpu_worker()
112 struct timespec start; in run_test()
113 struct timespec ts_diff; in run_test()
114 struct timespec get_dirty_log_total = (struct timespec){0}; in run_test()
115 struct timespec vcpu_dirty_total = (struct timespec){0}; in run_test()
116 struct timespec avg; in run_test()
117 struct timespec clear_dirty_log_total = (struct timespec){0}; in run_test()
H A Ddemand_paging_test.c37 struct timespec start; in vcpu_worker()
38 struct timespec ts_diff; in vcpu_worker()
62 struct timespec start; in handle_uffd_page_request()
63 struct timespec ts_diff; in handle_uffd_page_request()
158 struct timespec start; in run_test()
159 struct timespec ts_diff; in run_test()
/linux/tools/testing/selftests/timens/
H A Dvfork_exec.c24 struct timespec *now;
30 struct timespec *now = args->now, tst; in tcheck()
44 static int check_in_thread(char *tst_name, struct timespec *now) in check_in_thread()
60 static int check(char *tst_name, struct timespec *now) in check()
62 struct timespec tst; in check()
79 struct timespec now; in main()
/linux/tools/testing/selftests/futex/functional/
H A Dfutex_wait_timeout.c79 struct timespec to; in futex_get_abs_timeout()
103 struct timespec to; in TEST()
119 struct timespec to; in TEST()
160 struct timespec to; in TEST()
H A Dfutex_waitv.c32 struct timespec to; in waiterfn()
122 struct timespec to; in TEST()
148 struct timespec to; in TEST()
175 struct timespec to; in TEST()
216 struct timespec to; in TEST()
/linux/include/uapi/linux/
H A Dtime.h11 struct timespec { struct
23 struct timespec it_interval;/* timer period */ argument
24 struct timespec it_value; /* timer expiration */
/linux/tools/perf/bench/
H A Dfutex.h51 futex_syscall(volatile u_int32_t *uaddr, int op, u_int32_t val, struct timespec *timeout, in futex_syscall()
69 futex_wait(u_int32_t *uaddr, u_int32_t val, struct timespec *timeout, int opflags) in futex_wait()
88 futex_lock_pi(u_int32_t *uaddr, struct timespec *timeout, int opflags) in futex_lock_pi()
125 struct timespec *timeout, int opflags) in futex_wait_requeue_pi()
/linux/tools/perf/util/
H A Diostat.h21 struct timespec;
39 char *prefix, struct timespec *ts);
44 struct perf_stat_config *config, struct timespec *ts,
/linux/tools/testing/selftests/rseq/
H A Dslice_test.c94 static inline bool elapsed(struct timespec *start, struct timespec *now, in elapsed()
109 struct timespec ts_start, ts_now; in noise_thread()
165 struct timespec ts_start, ts_now; in TEST_F()
171 struct timespec ts_cs; in TEST_F()
/linux/Documentation/translations/zh_CN/userspace-api/
H A Dfutex2.rst31 unsigned int flags, struct timespec *timeout, clockid_t clockid)
66 ``struct timespec *timeout`` 是一个指向绝对超时时间的可选参数。你需要在 ``clockid``
68 系统调用只接受64位的timespec结构体。
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dnet_timestamping.c15 static struct timespec usr_ts;
21 static int64_t timespec_to_ns64(struct timespec *ts) in timespec_to_ns64()
38 static void validate_timestamp(struct timespec *cur, struct timespec *prev) in validate_timestamp()
51 static struct timespec prev_ts; in test_socket_timestamp()
/linux/tools/testing/radix-tree/
H A Dbenchmark.c18 struct timespec start, finish; in benchmark_iter()
55 struct timespec start, finish; in benchmark_insert()
76 struct timespec start, finish; in benchmark_tagging()
97 struct timespec start, finish; in benchmark_delete()

1234567