Home
last modified time | relevance | path

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

12345

/tools/testing/radix-tree/
A Dbenchmark.c26 clock_gettime(CLOCK_MONOTONIC, &start); in benchmark_iter()
36 clock_gettime(CLOCK_MONOTONIC, &finish); in benchmark_iter()
59 clock_gettime(CLOCK_MONOTONIC, &start); in benchmark_insert()
64 clock_gettime(CLOCK_MONOTONIC, &finish); in benchmark_insert()
80 clock_gettime(CLOCK_MONOTONIC, &start); in benchmark_tagging()
85 clock_gettime(CLOCK_MONOTONIC, &finish); in benchmark_tagging()
101 clock_gettime(CLOCK_MONOTONIC, &start); in benchmark_delete()
106 clock_gettime(CLOCK_MONOTONIC, &finish); in benchmark_delete()
/tools/testing/selftests/timers/
A Dnsleep-lat.c94 if (clock_gettime(clockid, &start)) in nanosleep_lat_test()
102 clock_gettime(clockid, &start); in nanosleep_lat_test()
105 clock_gettime(clockid, &end); in nanosleep_lat_test()
114 clock_gettime(clockid, &start); in nanosleep_lat_test()
117 clock_gettime(clockid, &end); in nanosleep_lat_test()
A Dadjtick.c71 clock_gettime(CLOCK_MONOTONIC, mon); in get_monotonic_and_raw()
72 clock_gettime(CLOCK_MONOTONIC_RAW, raw); in get_monotonic_and_raw()
78 clock_gettime(CLOCK_MONOTONIC, &start); in get_monotonic_and_raw()
79 clock_gettime(CLOCK_MONOTONIC_RAW, &mid); in get_monotonic_and_raw()
80 clock_gettime(CLOCK_MONOTONIC, &end); in get_monotonic_and_raw()
173 if (clock_gettime(CLOCK_MONOTONIC_RAW, &raw)) { in main()
A Dnanosleep.c94 if (clock_gettime(clockid, &now)) in nanosleep_test()
100 clock_gettime(clockid, &now); in nanosleep_test()
106 clock_gettime(clockid, &now); in nanosleep_test()
112 clock_gettime(clockid, &now); in nanosleep_test()
A Dmqueue-lat.c75 clock_gettime(CLOCK_MONOTONIC, &start); in mqueue_lat_test()
80 clock_gettime(CLOCK_REALTIME, &now); in mqueue_lat_test()
90 clock_gettime(CLOCK_MONOTONIC, &end); in mqueue_lat_test()
A Draw_skew.c76 clock_gettime(CLOCK_MONOTONIC, &start); in get_monotonic_and_raw()
77 clock_gettime(CLOCK_MONOTONIC_RAW, &mid); in get_monotonic_and_raw()
78 clock_gettime(CLOCK_MONOTONIC, &end); in get_monotonic_and_raw()
98 if (clock_gettime(CLOCK_MONOTONIC_RAW, &raw)) { in main()
A Dfreq-step.c55 clock_gettime(CLOCK_MONOTONIC_RAW, &ts1); in get_sample()
56 clock_gettime(CLOCK_MONOTONIC, &ts2); in get_sample()
57 clock_gettime(CLOCK_MONOTONIC_RAW, &ts3); in get_sample()
208 if (clock_gettime(CLOCK_MONOTONIC_RAW, &ts)) { in init_test()
215 if (clock_gettime(CLOCK_MONOTONIC, &ts)) { in init_test()
A Dinconsistency-check.c91 clock_gettime(clock_type, &list[0]); in consistency_test()
103 clock_gettime(clock_type, &list[i]); in consistency_test()
173 if (clockid == CLOCK_HWSPECIFIC || clock_gettime(clockid, &ts)) { in main()
A Dleap-a-day.c164 clock_gettime(CLOCK_REALTIME, &now); in test_hrtimer_failure()
167 clock_gettime(CLOCK_REALTIME, &now); in test_hrtimer_failure()
215 if (clock_gettime(CLOCK_TAI, &ts)) { in main()
243 clock_gettime(CLOCK_REALTIME, &ts); in main()
338 clock_gettime(CLOCK_TAI, &tai); in main()
A Dalarmtimer-suspend.c88 clock_gettime(alarm_clock_id, &ts); in sigalarm()
136 clock_gettime(alarm_clock_id, &start_time); in main()
/tools/testing/selftests/vDSO/
A Dvdso_test_getrandom.c180 clock_gettime(CLOCK_MONOTONIC, &start); in bench_single()
182 clock_gettime(CLOCK_MONOTONIC, &end); in bench_single()
186 clock_gettime(CLOCK_MONOTONIC, &start); in bench_single()
188 clock_gettime(CLOCK_MONOTONIC, &end); in bench_single()
192 clock_gettime(CLOCK_MONOTONIC, &start); in bench_single()
194 clock_gettime(CLOCK_MONOTONIC, &end); in bench_single()
204 clock_gettime(CLOCK_MONOTONIC, &start); in bench_multi()
209 clock_gettime(CLOCK_MONOTONIC, &end); in bench_multi()
213 clock_gettime(CLOCK_MONOTONIC, &start); in bench_multi()
218 clock_gettime(CLOCK_MONOTONIC, &end); in bench_multi()
[all …]
/tools/testing/selftests/futex/functional/
A Dfutex_waitv.c43 if (clock_gettime(CLOCK_MONOTONIC, &to)) in waiterfn()
151 if (clock_gettime(CLOCK_MONOTONIC, &to)) in main()
170 if (clock_gettime(CLOCK_MONOTONIC, &to)) in main()
188 if (clock_gettime(CLOCK_MONOTONIC, &to)) in main()
204 if (clock_gettime(CLOCK_MONOTONIC, &to)) in main()
220 if (clock_gettime(CLOCK_MONOTONIC, &to)) in main()
/tools/testing/selftests/timens/
A Dfutex.c29 clock_gettime(clockid, &timeout); in run_test()
48 clock_gettime(clockid, &end); in run_test()
75 clock_gettime(CLOCK_MONOTONIC, &mtime_now); in main()
A Dtimerfd.c22 return clock_gettime(clockid, now); in tclock_gettime()
93 clock_gettime(CLOCK_MONOTONIC, &mtime_now); in main()
94 clock_gettime(CLOCK_BOOTTIME, &btime_now); in main()
A Dtimens.h26 if (clock_gettime(CLOCK_BOOTTIME_ALARM, &ts) == -1 && errno == EINVAL) in check_supported_timers()
91 if (clock_gettime(clk_id, res)) { in _gettime()
A Dtimer.c86 clock_gettime(CLOCK_MONOTONIC, &mtime_now); in main()
87 clock_gettime(CLOCK_BOOTTIME, &btime_now); in main()
/tools/testing/selftests/powerpc/benchmarks/
A Dfutex_bench.c25 clock_gettime(CLOCK_MONOTONIC, &ts_start); in test_futex()
32 clock_gettime(CLOCK_MONOTONIC, &ts_end); in test_futex()
A Dmmap_bench.c39 clock_gettime(CLOCK_MONOTONIC, &ts_start); in test_mmap()
53 clock_gettime(CLOCK_MONOTONIC, &ts_end); in test_mmap()
A Dnull_syscall.c138 clock_gettime(CLOCK_MONOTONIC, &tv_start); in main()
143 clock_gettime(CLOCK_MONOTONIC, &tv_now); in main()
/tools/testing/selftests/mm/
A Dksm_tests.c203 if (clock_gettime(CLOCK_MONOTONIC_RAW, &cur_time)) { in ksm_do_scan()
326 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in check_ksm_merge()
360 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in check_ksm_unmerge()
400 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in check_ksm_zero_page_merge()
467 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in check_ksm_numa_merge()
567 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in ksm_merge_hugepages_time()
573 if (clock_gettime(CLOCK_MONOTONIC_RAW, &end_time)) { in ksm_merge_hugepages_time()
614 if (clock_gettime(CLOCK_MONOTONIC_RAW, &end_time)) { in ksm_merge_time()
661 if (clock_gettime(CLOCK_MONOTONIC_RAW, &end_time)) { in ksm_unmerge_time()
703 if (clock_gettime(CLOCK_MONOTONIC_RAW, &end_time)) { in ksm_cow_time()
[all …]
A Dtranshuge-stress.c90 clock_gettime(CLOCK_MONOTONIC, &start); in main()
97 clock_gettime(CLOCK_MONOTONIC, &a); in main()
125 clock_gettime(CLOCK_MONOTONIC, &b); in main()
/tools/testing/selftests/kvm/
A Ddirty_log_perf_test.c85 clock_gettime(CLOCK_MONOTONIC, &start); in vcpu_worker()
175 clock_gettime(CLOCK_MONOTONIC, &start); in run_test()
203 clock_gettime(CLOCK_MONOTONIC, &start); in run_test()
217 clock_gettime(CLOCK_MONOTONIC, &start); in run_test()
232 clock_gettime(CLOCK_MONOTONIC, &start); in run_test()
241 clock_gettime(CLOCK_MONOTONIC, &start); in run_test()
261 clock_gettime(CLOCK_MONOTONIC, &start); in run_test()
/tools/testing/selftests/intel_pstate/
A Daperf.c62 if (clock_gettime(CLOCK_MONOTONIC, &before) < 0) { in main()
74 if (clock_gettime(CLOCK_MONOTONIC, &after) < 0) { in main()
/tools/power/cpupower/utils/idle_monitor/
A Damd_fam14h_idle.c231 clock_gettime(CLOCK_REALTIME, &start_time); in amd_fam14h_start()
237 clock_gettime(CLOCK_REALTIME, &dbg_time); in amd_fam14h_start()
250 clock_gettime(CLOCK_REALTIME, &end_time); in amd_fam14h_stop()
257 clock_gettime(CLOCK_REALTIME, &dbg_time); in amd_fam14h_stop()
/tools/testing/selftests/powerpc/stringloops/
A Dstrlen.c41 clock_gettime(CLOCK_MONOTONIC, &ts_start); in bench_test()
46 clock_gettime(CLOCK_MONOTONIC, &ts_end); in bench_test()

Completed in 774 milliseconds

12345