/linux-6.1.9/tools/testing/selftests/kvm/include/ |
D | test_util.h | 73 int64_t timespec_to_ns(struct timespec ts); 74 struct timespec timespec_add_ns(struct timespec ts, int64_t ns); 75 struct timespec timespec_add(struct timespec ts1, struct timespec ts2); 76 struct timespec timespec_sub(struct timespec ts1, struct timespec ts2); 77 struct timespec timespec_elapsed(struct timespec start); 78 struct timespec timespec_div(struct timespec ts, int divisor);
|
/linux-6.1.9/tools/testing/selftests/kvm/lib/ |
D | test_util.c | 61 int64_t timespec_to_ns(struct timespec ts) in timespec_to_ns() 66 struct timespec timespec_add_ns(struct timespec ts, int64_t ns) in timespec_add_ns() 68 struct timespec res; in timespec_add_ns() 77 struct timespec timespec_add(struct timespec ts1, struct timespec ts2) in timespec_add() 81 return timespec_add_ns((struct timespec){0}, ns1 + ns2); in timespec_add() 84 struct timespec timespec_sub(struct timespec ts1, struct timespec ts2) in timespec_sub() 88 return timespec_add_ns((struct timespec){0}, ns1 - ns2); in timespec_sub() 91 struct timespec timespec_elapsed(struct timespec start) in timespec_elapsed() 93 struct timespec end; in timespec_elapsed() 99 struct timespec timespec_div(struct timespec ts, int divisor) in timespec_div() [all …]
|
/linux-6.1.9/tools/testing/selftests/timers/ |
D | raw_skew.c | 46 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()
|
D | adjtick.c | 44 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()
|
D | mqueue-lat.c | 40 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()
|
D | nanosleep.c | 80 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()
|
D | leap-a-day.c | 60 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()
|
D | nsleep-lat.c | 79 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()
|
D | alarmtimer-suspend.c | 54 struct timespec start_time; 87 long long timespec_sub(struct timespec a, struct timespec b) in timespec_sub() 100 struct timespec ts; in sigalarm()
|
D | threadtest.c | 37 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()
|
D | inconsistency-check.c | 80 static inline int in_order(struct timespec a, struct timespec b) in in_order() 96 struct timespec list[CALLS_PER_LOOP]; in consistency_test() 157 struct timespec ts; in main()
|
/linux-6.1.9/tools/testing/selftests/kvm/ |
D | dirty_log_perf_test.c | 76 struct timespec start; in vcpu_worker() 77 struct timespec ts_diff; in vcpu_worker() 78 struct timespec total = (struct timespec){0}; in vcpu_worker() 79 struct timespec avg; in vcpu_worker() 216 struct timespec start; in run_test() 217 struct timespec ts_diff; in run_test() 218 struct timespec get_dirty_log_total = (struct timespec){0}; in run_test() 219 struct timespec vcpu_dirty_total = (struct timespec){0}; in run_test() 220 struct timespec avg; in run_test() 221 struct timespec clear_dirty_log_total = (struct timespec){0}; in run_test()
|
D | demand_paging_test.c | 50 struct timespec start; in vcpu_worker() 51 struct timespec ts_diff; in vcpu_worker() 73 struct timespec start; in handle_uffd_page_request() 74 struct timespec ts_diff; in handle_uffd_page_request() 135 struct timespec start; in uffd_handler_thread_fn() 136 struct timespec ts_diff; in uffd_handler_thread_fn() 282 struct timespec start; in run_test() 283 struct timespec ts_diff; in run_test()
|
/linux-6.1.9/include/uapi/linux/ |
D | time.h | 11 struct timespec { struct 23 struct timespec it_interval;/* timer period */ argument 24 struct timespec it_value; /* timer expiration */
|
/linux-6.1.9/tools/perf/bench/ |
D | futex.h | 49 futex_syscall(volatile u_int32_t *uaddr, int op, u_int32_t val, struct timespec *timeout, in futex_syscall() 67 futex_wait(u_int32_t *uaddr, u_int32_t val, struct timespec *timeout, int opflags) in futex_wait() 86 futex_lock_pi(u_int32_t *uaddr, struct timespec *timeout, int opflags) in futex_lock_pi() 123 struct timespec *timeout, int opflags) in futex_wait_requeue_pi()
|
/linux-6.1.9/tools/perf/util/ |
D | iostat.h | 21 struct timespec; 39 char *prefix, struct timespec *ts); 44 struct perf_stat_config *config, struct timespec *ts,
|
/linux-6.1.9/tools/testing/selftests/cgroup/ |
D | test_cpu.c | 30 struct timespec ts; 105 static struct timespec 106 timespec_sub(const struct timespec *lhs, const struct timespec *rhs) in timespec_sub() 108 struct timespec zero = { in timespec_sub() 112 struct timespec ret; in timespec_sub() 135 struct timespec ts_run = param->ts; in hog_cpus_timed() 136 struct timespec ts_remaining = ts_run; in hog_cpus_timed() 137 struct timespec ts_start; in hog_cpus_timed() 153 struct timespec ts_total; in hog_cpus_timed() 164 struct timespec ts_current; in hog_cpus_timed()
|
/linux-6.1.9/tools/testing/selftests/futex/include/ |
D | futextest.h | 78 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-6.1.9/tools/testing/selftests/vDSO/ |
D | vdso_test_abi.c | 32 typedef long (*vdso_clock_gettime_t)(clockid_t clk_id, struct timespec *ts); 33 typedef long (*vdso_clock_getres_t)(clockid_t clk_id, struct timespec *ts); 74 struct timespec ts; in vdso_test_clock_gettime() 121 struct timespec ts, sys_ts; in vdso_test_clock_getres()
|
/linux-6.1.9/tools/testing/radix-tree/ |
D | benchmark.c | 18 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-6.1.9/Documentation/core-api/ |
D | timekeeping.rst | 84 interface that expects a 'timespec' or 'timeval' structure. 150 all interfaces returning a 'struct timeval' or 'struct timespec' have 154 .. c:function:: void ktime_get_ts( struct timespec * ) 159 void getnstimeofday( struct timespec * ) 161 void ktime_get_real_ts( struct timespec * ) 167 .. c:function:: struct timespec current_kernel_time( void ) 169 struct timespec get_monotonic_coarse( void ) 178 .. c:function:: struct timespec getrawmonotonic( void ) 180 struct timespec timekeeping_clocktai( void ) 182 struct timespec get_monotonic_boottime( void )
|
/linux-6.1.9/arch/um/os-Linux/ |
D | time.c | 21 static inline long long timespec_to_ns(const struct timespec *ts) in timespec_to_ns() 28 struct timespec realtime_tp; in os_persistent_clock_emulation() 90 struct timespec ts; in os_nsecs()
|
/linux-6.1.9/tools/testing/selftests/vm/ |
D | ksm_tests.c | 150 static int ksm_do_scan(int scan_count, struct timespec start_time, int timeout) in ksm_do_scan() 152 struct timespec cur_time; in ksm_do_scan() 175 static int ksm_merge_pages(void *addr, size_t size, struct timespec start_time, int timeout) in ksm_merge_pages() 258 struct timespec start_time; in check_ksm_merge() 289 struct timespec start_time; in check_ksm_unmerge() 330 struct timespec start_time; in check_ksm_zero_page_merge() 395 struct timespec start_time; in check_ksm_numa_merge() 458 struct timespec start_time, end_time; in ksm_merge_hugepages_time() 525 struct timespec start_time, end_time; in ksm_merge_time() 566 struct timespec start_time, end_time; in ksm_cow_time()
|
/linux-6.1.9/tools/testing/selftests/timens/ |
D | timerfd.c | 18 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()
|
/linux-6.1.9/tools/thermal/lib/ |
D | uptimeofday.c | 32 struct timespec msec_to_timespec(int msec) in msec_to_timespec() 34 struct timespec tv = { in msec_to_timespec()
|