Home
last modified time | relevance | path

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

123456789

/linux/tools/testing/selftests/futex/functional/
H A Dfutex_waitv.c36 ASSERT_EQ(clock_gettime(CLOCK_MONOTONIC, &to), 0) in waiterfn()
41 res = futex_waitv(waitv, NR_FUTEXES, 0, &to, CLOCK_MONOTONIC); in waiterfn()
131 ASSERT_EQ(clock_gettime(CLOCK_MONOTONIC, &to), 0) in TEST()
136 res = futex_waitv(waitv, NR_FUTEXES, 0, &to, CLOCK_MONOTONIC); in TEST()
158 ASSERT_EQ(clock_gettime(CLOCK_MONOTONIC, &to), 0) in TEST()
163 res = futex_waitv(waitv, NR_FUTEXES, 0, &to, CLOCK_MONOTONIC); in TEST()
184 ASSERT_EQ(clock_gettime(CLOCK_MONOTONIC, &to), 0) in TEST()
189 res = futex_waitv(waitv, NR_FUTEXES, 0, &to, CLOCK_MONOTONIC); in TEST()
199 ASSERT_EQ(clock_gettime(CLOCK_MONOTONIC, &to), 0) in TEST()
204 res = futex_waitv(NULL, NR_FUTEXES, 0, &to, CLOCK_MONOTONIC); in TEST()
[all...]
H A Dfutex_wait_timeout.c94 /* FUTEX_WAIT_BITSET with CLOCK_MONOTONIC */ in TEST()
95 GET_ABS_TIMEOUT(CLOCK_MONOTONIC, &to, timeout_ns); in TEST()
111 /* FUTEX_WAIT_REQUEUE_PI with CLOCK_MONOTONIC */ in TEST()
112 GET_ABS_TIMEOUT(CLOCK_MONOTONIC, &to, timeout_ns); in TEST()
166 /* futex_waitv with CLOCK_MONOTONIC */ in TEST()
167 GET_ABS_TIMEOUT(CLOCK_MONOTONIC, &to, timeout_ns); in TEST()
168 res = futex_waitv(&waitv, 1, 0, &to, CLOCK_MONOTONIC); in TEST()
H A Dfutex_wait_wouldblock.c63 ASSERT_EQ(clock_gettime(CLOCK_MONOTONIC, &to), 0) in TEST()
74 res = futex_waitv(&waitv, 1, 0, &to, CLOCK_MONOTONIC); in TEST()
/linux/tools/testing/radix-tree/
H 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()
/linux/tools/testing/selftests/timens/
H A Dexec.c32 _gettime(CLOCK_MONOTONIC, &tst, i); in main()
45 clock_gettime(CLOCK_MONOTONIC, &now); in main()
50 if (_settime(CLOCK_MONOTONIC, OFFSET)) in main()
54 _gettime(CLOCK_MONOTONIC, &tst, i); in main()
74 _gettime(CLOCK_MONOTONIC, &tst, i); in main()
H A Dvfork_exec.c34 _gettime(CLOCK_MONOTONIC, &tst, i); in tcheck()
66 _gettime(CLOCK_MONOTONIC, &tst, i); in check()
100 clock_gettime(CLOCK_MONOTONIC, &now); in main()
105 if (_settime(CLOCK_MONOTONIC, OFFSET)) in main()
H A Dfutex.c75 clock_gettime(CLOCK_MONOTONIC, &mtime_now); in main()
81 CLOCK_MONOTONIC, 70 * 24 * 3600); in main()
98 ret |= run_test(CLOCK_MONOTONIC); in main()
H A Dgettime_perf.c76 test(CLOCK_MONOTONIC, "monotonic", false); in main()
90 if (_settime(CLOCK_MONOTONIC, offset)) in main()
98 test(CLOCK_MONOTONIC, "monotonic", true); in main()
H A Dtimer.c86 clock_gettime(CLOCK_MONOTONIC, &mtime_now); in main()
93 CLOCK_MONOTONIC, 70 * 24 * 3600, in main()
112 ret |= run_test(CLOCK_MONOTONIC, mtime_now); in main()
H A Dtimerfd.c93 clock_gettime(CLOCK_MONOTONIC, &mtime_now); in main()
100 CLOCK_MONOTONIC, 70 * 24 * 3600, in main()
119 ret |= run_test(CLOCK_MONOTONIC, mtime_now); in main()
H A Dclock_nanosleep.c129 if (_settime(CLOCK_MONOTONIC, 7 * 24 * 3600)) in main()
142 ret |= run_test(CLOCK_MONOTONIC, 0); in main()
143 ret |= run_test(CLOCK_MONOTONIC, 1); in main()
H A Dtimens.h43 case CLOCK_MONOTONIC: in check_skip()
70 clk_id = CLOCK_MONOTONIC; in _settime()
/linux/tools/testing/selftests/vDSO/
H 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 …]
/linux/tools/testing/selftests/rseq/
H A Dslice_test.c111 clock_gettime(CLOCK_MONOTONIC, &ts_start); in noise_thread()
113 clock_gettime(CLOCK_MONOTONIC, &ts_now); in noise_thread()
118 clock_nanosleep(CLOCK_MONOTONIC, 0, &ts_start, NULL); in noise_thread()
169 clock_gettime(CLOCK_MONOTONIC, &ts_start); in TEST_F()
174 clock_gettime(CLOCK_MONOTONIC, &ts_cs); in TEST_F()
179 clock_gettime(CLOCK_MONOTONIC, &ts_now); in TEST_F()
210 clock_gettime(CLOCK_MONOTONIC, &ts_now); in TEST_F()
/linux/include/uapi/linux/
H A Dtime.h50 #define CLOCK_MONOTONIC 1 macro
78 #define CLOCKS_MASK (CLOCK_REALTIME | CLOCK_MONOTONIC)
79 #define CLOCKS_MONO CLOCK_MONOTONIC
/linux/kernel/time/
H A Dposix-stubs.c45 case CLOCK_MONOTONIC: in do_clock_gettime()
84 case CLOCK_MONOTONIC: in SYSCALL_DEFINE2()
103 case CLOCK_MONOTONIC: in SYSCALL_DEFINE4()
167 case CLOCK_MONOTONIC: in SYSCALL_DEFINE2()
186 case CLOCK_MONOTONIC: in SYSCALL_DEFINE4()
/linux/tools/testing/selftests/kvm/
H A Ddirty_log_perf_test.c53 clock_gettime(CLOCK_MONOTONIC, &start); in vcpu_worker()
141 clock_gettime(CLOCK_MONOTONIC, &start); in run_test()
169 clock_gettime(CLOCK_MONOTONIC, &start); in run_test()
183 clock_gettime(CLOCK_MONOTONIC, &start); in run_test()
198 clock_gettime(CLOCK_MONOTONIC, &start); in run_test()
207 clock_gettime(CLOCK_MONOTONIC, &start); in run_test()
227 clock_gettime(CLOCK_MONOTONIC, &start); in run_test()
/linux/tools/testing/selftests/powerpc/benchmarks/
H A Dfutex_bench.c25 clock_gettime(CLOCK_MONOTONIC, &ts_start); in test_futex()
32 clock_gettime(CLOCK_MONOTONIC, &ts_end); in test_futex()
H A Dmmap_bench.c39 clock_gettime(CLOCK_MONOTONIC, &ts_start); in test_mmap()
53 clock_gettime(CLOCK_MONOTONIC, &ts_end); in test_mmap()
/linux/tools/testing/selftests/mm/
H A Dtranshuge-stress.c94 clock_gettime(CLOCK_MONOTONIC, &start); in main()
101 clock_gettime(CLOCK_MONOTONIC, &a); in main()
129 clock_gettime(CLOCK_MONOTONIC, &b); in main()
/linux/tools/testing/selftests/timers/
H A Dadjtick.c71 clock_gettime(CLOCK_MONOTONIC, mon); in get_monotonic_and_raw()
78 clock_gettime(CLOCK_MONOTONIC, &start); in get_monotonic_and_raw()
80 clock_gettime(CLOCK_MONOTONIC, &end); in get_monotonic_and_raw()
H A Dmqueue-lat.c75 clock_gettime(CLOCK_MONOTONIC, &start); in mqueue_lat_test()
90 clock_gettime(CLOCK_MONOTONIC, &end); in mqueue_lat_test()
H A Dposix_timers.c307 if (timer_create(CLOCK_MONOTONIC, &sev, &timerid)) in check_sig_ign()
380 if (timer_create(CLOCK_MONOTONIC, &sev, &timerid)) in check_rearm()
436 if (timer_create(CLOCK_MONOTONIC, &sev, &timerid)) in check_delete()
613 return syscall(__NR_timer_create, CLOCK_MONOTONIC, NULL, id); in do_timer_delete()
715 check_sigev_none(CLOCK_MONOTONIC); in main()
717 check_gettime(CLOCK_MONOTONIC); in main()
724 check_overrun(CLOCK_MONOTONIC); in main()
/linux/tools/perf/util/
H A Dclockid.c38 CLOCKID_MAP("monotonic", CLOCK_MONOTONIC),
47 CLOCKID_MAP("mono", CLOCK_MONOTONIC),
/linux/tools/testing/selftests/intel_pstate/
H A Daperf.c62 if (clock_gettime(CLOCK_MONOTONIC, &before) < 0) { in main()
74 if (clock_gettime(CLOCK_MONOTONIC, &after) < 0) { in main()

123456789