Home
last modified time | relevance | path

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

12345

/Linux-v5.10/tools/testing/selftests/kvm/lib/
Dtest_util.c57 int64_t timespec_to_ns(struct timespec ts) in timespec_to_ns()
62 struct timespec timespec_add_ns(struct timespec ts, int64_t ns) in timespec_add_ns()
64 struct timespec res; in timespec_add_ns()
73 struct timespec timespec_add(struct timespec ts1, struct timespec ts2) in timespec_add()
77 return timespec_add_ns((struct timespec){0}, ns1 + ns2); in timespec_add()
80 struct timespec timespec_sub(struct timespec ts1, struct timespec ts2) in timespec_sub()
84 return timespec_add_ns((struct timespec){0}, ns1 - ns2); in timespec_sub()
87 struct timespec timespec_diff_now(struct timespec start) in timespec_diff_now()
89 struct timespec end; in timespec_diff_now()
95 struct timespec timespec_div(struct timespec ts, int divisor) in timespec_div()
[all …]
/Linux-v5.10/tools/testing/selftests/kvm/include/
Dtest_util.h63 int64_t timespec_to_ns(struct timespec ts);
64 struct timespec timespec_add_ns(struct timespec ts, int64_t ns);
65 struct timespec timespec_add(struct timespec ts1, struct timespec ts2);
66 struct timespec timespec_sub(struct timespec ts1, struct timespec ts2);
67 struct timespec timespec_diff_now(struct timespec start);
68 struct timespec timespec_div(struct timespec ts, int divisor);
/Linux-v5.10/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()
170 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()
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()
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()
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()
Dalarmtimer-suspend.c54 struct timespec start_time;
87 long long timespec_sub(struct timespec a, struct timespec b) in timespec_sub()
100 struct timespec ts; in sigalarm()
Dinconsistency-check.c80 static inline int in_order(struct timespec a, struct timespec b) in in_order()
96 struct timespec list[CALLS_PER_LOOP]; in consistency_test()
159 struct timespec ts; in main()
Dthreadtest.c37 struct timespec global_list[LISTSIZE];
41 void checklist(struct timespec *list, int size) in checklist()
44 struct timespec *a, *b; in checklist()
105 struct timespec my_list[LISTSIZE]; in independent_thread()
Dset-timer-lat.c54 struct timespec start_time;
88 long long timespec_sub(struct timespec a, struct timespec b) in timespec_sub()
100 struct timespec ts; in sigalarm()
Dfreq-step.c43 static double diff_timespec(struct timespec *ts1, struct timespec *ts2) in diff_timespec()
51 struct timespec ts1, ts2, ts3; in get_sample()
205 struct timespec ts; in init_test()
/Linux-v5.10/tools/testing/selftests/kvm/
Ddirty_log_perf_test.c40 struct timespec start; in vcpu_worker()
41 struct timespec ts_diff; in vcpu_worker()
42 struct timespec total = (struct timespec){0}; in vcpu_worker()
43 struct timespec avg; in vcpu_worker()
104 struct timespec start; in run_test()
105 struct timespec ts_diff; in run_test()
106 struct timespec get_dirty_log_total = (struct timespec){0}; in run_test()
107 struct timespec vcpu_dirty_total = (struct timespec){0}; in run_test()
108 struct timespec avg; in run_test()
111 struct timespec clear_dirty_log_total = (struct timespec){0}; in run_test()
Ddemand_paging_test.c51 struct timespec start; in vcpu_worker()
52 struct timespec ts_diff; in vcpu_worker()
78 struct timespec start; in handle_uffd_page_request()
79 struct timespec ts_diff; in handle_uffd_page_request()
124 struct timespec start; in uffd_handler_thread_fn()
125 struct timespec ts_diff; in uffd_handler_thread_fn()
257 struct timespec start; in run_test()
258 struct timespec ts_diff; in run_test()
/Linux-v5.10/arch/um/os-Linux/
Dtime.c26 static inline long long timespec_to_ns(const struct timespec *ts) in timespec_to_ns()
33 struct timespec realtime_tp; in os_persistent_clock_emulation()
95 struct timespec ts; in os_nsecs()
107 struct timespec ts = { in os_idle_sleep()
/Linux-v5.10/include/uapi/linux/
Dtime.h11 struct timespec { struct
23 struct timespec it_interval;/* timer period */ argument
24 struct timespec it_value; /* timer expiration */
/Linux-v5.10/tools/testing/selftests/futex/include/
Dfutextest.h78 futex_wait(futex_t *uaddr, futex_t val, struct timespec *timeout, int opflags) in futex_wait()
98 futex_wait_bitset(futex_t *uaddr, futex_t val, struct timespec *timeout, in futex_wait_bitset()
121 futex_lock_pi(futex_t *uaddr, struct timespec *timeout, int detect, in futex_lock_pi()
186 struct timespec *timeout, int opflags) in futex_wait_requeue_pi()
/Linux-v5.10/tools/testing/radix-tree/
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()
/Linux-v5.10/Documentation/core-api/
Dtimekeeping.rst84 interface that expects a 'timespec' or 'timeval' structure.
149 all interfaces returning a 'struct timeval' or 'struct timespec' have
153 .. c:function:: void ktime_get_ts( struct timespec * )
158 void getnstimeofday( struct timespec * )
160 void ktime_get_real_ts( struct timespec * )
166 .. c:function:: struct timespec current_kernel_time( void )
168 struct timespec get_monotonic_coarse( void )
177 .. c:function:: struct timespec getrawmonotonic( void )
179 struct timespec timekeeping_clocktai( void )
181 struct timespec get_monotonic_boottime( void )
/Linux-v5.10/tools/testing/selftests/x86/
Dtest_vdso.c35 typedef int (*vgettime_t)(clockid_t, struct timespec *);
124 static inline int sys_clock_gettime(clockid_t id, struct timespec *ts) in sys_clock_gettime()
186 static bool ts_leq(const struct timespec *a, const struct timespec *b) in ts_leq()
219 struct timespec start, vdso, end; in test_one_clock_gettime()
/Linux-v5.10/tools/testing/selftests/timens/
Dtimerfd.c18 static int tclock_gettime(clock_t clockid, struct timespec *now) in tclock_gettime()
25 int run_test(int clockid, struct timespec now) in run_test()
83 struct timespec btime_now, mtime_now; in main()
Dclock_nanosleep.c26 struct timespec *now, *rem;
43 struct timespec now = {}, rem; in run_test()
45 struct timespec start; in run_test()
/Linux-v5.10/tools/power/cpupower/utils/idle_monitor/
Dcpupower-monitor.h69 extern long long timespec_diff_us(struct timespec start, struct timespec end);
/Linux-v5.10/tools/perf/bench/
Dfutex.h44 futex_wait(u_int32_t *uaddr, u_int32_t val, struct timespec *timeout, int opflags) in futex_wait()
63 futex_lock_pi(u_int32_t *uaddr, struct timespec *timeout, int opflags) in futex_lock_pi()

12345