Home
last modified time | relevance | path

Searched refs:CLOCK_MONOTONIC (Results 1 – 25 of 64) sorted by relevance

123

/tools/testing/selftests/timens/
Dexec.c32 _gettime(CLOCK_MONOTONIC, &tst, i); in main()
43 clock_gettime(CLOCK_MONOTONIC, &now); in main()
48 if (_settime(CLOCK_MONOTONIC, OFFSET)) in main()
52 _gettime(CLOCK_MONOTONIC, &tst, i); in main()
72 _gettime(CLOCK_MONOTONIC, &tst, i); in main()
Dfutex.c73 clock_gettime(CLOCK_MONOTONIC, &mtime_now); in main()
79 CLOCK_MONOTONIC, 70 * 24 * 3600); in main()
96 ret |= run_test(CLOCK_MONOTONIC); in main()
Dgettime_perf.c74 test(CLOCK_MONOTONIC, "monotonic", false); in main()
88 if (_settime(CLOCK_MONOTONIC, offset)) in main()
96 test(CLOCK_MONOTONIC, "monotonic", true); in main()
Dtimer.c84 clock_gettime(CLOCK_MONOTONIC, &mtime_now); in main()
91 CLOCK_MONOTONIC, 70 * 24 * 3600, in main()
110 ret |= run_test(CLOCK_MONOTONIC, mtime_now); in main()
Dtimerfd.c91 clock_gettime(CLOCK_MONOTONIC, &mtime_now); in main()
98 CLOCK_MONOTONIC, 70 * 24 * 3600, in main()
117 ret |= run_test(CLOCK_MONOTONIC, mtime_now); in main()
Dclock_nanosleep.c127 if (_settime(CLOCK_MONOTONIC, 7 * 24 * 3600)) in main()
140 ret |= run_test(CLOCK_MONOTONIC, 0); in main()
141 ret |= run_test(CLOCK_MONOTONIC, 1); in main()
Dtimens.h43 case CLOCK_MONOTONIC: in check_skip()
70 clk_id = CLOCK_MONOTONIC; in _settime()
/tools/testing/radix-tree/
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/powerpc/benchmarks/
Dfutex_bench.c25 clock_gettime(CLOCK_MONOTONIC, &ts_start); in test_futex()
32 clock_gettime(CLOCK_MONOTONIC, &ts_end); in test_futex()
Dmmap_bench.c39 clock_gettime(CLOCK_MONOTONIC, &ts_start); in test_mmap()
53 clock_gettime(CLOCK_MONOTONIC, &ts_end); in test_mmap()
Dnull_syscall.c138 clock_gettime(CLOCK_MONOTONIC, &tv_start); in main()
143 clock_gettime(CLOCK_MONOTONIC, &tv_now); in main()
/tools/testing/selftests/vDSO/
Dvdso_test_clock_getres.c107 #ifdef CLOCK_MONOTONIC in main()
108 ret += vdso_test_clock(CLOCK_MONOTONIC); in main()
/tools/testing/selftests/kvm/
Ddirty_log_perf_test.c52 clock_gettime(CLOCK_MONOTONIC, &start); in vcpu_worker()
218 clock_gettime(CLOCK_MONOTONIC, &start); in run_test()
239 clock_gettime(CLOCK_MONOTONIC, &start); in run_test()
250 clock_gettime(CLOCK_MONOTONIC, &start); in run_test()
265 clock_gettime(CLOCK_MONOTONIC, &start); in run_test()
274 clock_gettime(CLOCK_MONOTONIC, &start); in run_test()
285 clock_gettime(CLOCK_MONOTONIC, &start); in run_test()
/tools/testing/selftests/timers/
Dmqueue-lat.c75 clock_gettime(CLOCK_MONOTONIC, &start); in mqueue_lat_test()
90 clock_gettime(CLOCK_MONOTONIC, &end); in mqueue_lat_test()
Dadjtick.c75 clock_gettime(CLOCK_MONOTONIC, mon); in get_monotonic_and_raw()
82 clock_gettime(CLOCK_MONOTONIC, &start); in get_monotonic_and_raw()
84 clock_gettime(CLOCK_MONOTONIC, &end); in get_monotonic_and_raw()
Dnanosleep.c35 #define CLOCK_MONOTONIC 1 macro
55 case CLOCK_MONOTONIC: in clockstring()
Dalarmtimer-suspend.c34 #define CLOCK_MONOTONIC 1 macro
62 case CLOCK_MONOTONIC: in clockstring()
Dnsleep-lat.c35 #define CLOCK_MONOTONIC 1 macro
55 case CLOCK_MONOTONIC: in clockstring()
Dinconsistency-check.c37 #define CLOCK_MONOTONIC 1 macro
55 case CLOCK_MONOTONIC: in clockstring()
Draw_skew.c78 clock_gettime(CLOCK_MONOTONIC, &start); in get_monotonic_and_raw()
80 clock_gettime(CLOCK_MONOTONIC, &end); in get_monotonic_and_raw()
/tools/perf/util/
Dclockid.c38 CLOCKID_MAP("monotonic", CLOCK_MONOTONIC),
47 CLOCKID_MAP("mono", CLOCK_MONOTONIC),
/tools/testing/selftests/intel_pstate/
Daperf.c62 if (clock_gettime(CLOCK_MONOTONIC, &before) < 0) { in main()
74 if (clock_gettime(CLOCK_MONOTONIC, &after) < 0) { in main()
/tools/build/feature/
Dtest-timerfd.c11 int fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK); in main()
/tools/testing/selftests/powerpc/stringloops/
Dstrlen.c41 clock_gettime(CLOCK_MONOTONIC, &ts_start); in bench_test()
46 clock_gettime(CLOCK_MONOTONIC, &ts_end); in bench_test()
/tools/testing/selftests/syscall_user_dispatch/
Dsud_benchmark.c73 clock_gettime(CLOCK_MONOTONIC, &t1); in one_sysinfo_step()
76 clock_gettime(CLOCK_MONOTONIC, &t2); in one_sysinfo_step()

123