Home
last modified time | relevance | path

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

12345678910>>...12

/linux-6.12.1/tools/testing/selftests/futex/functional/
Dfutex_waitv.c43 if (clock_gettime(CLOCK_MONOTONIC, &to)) in waiterfn()
48 res = futex_waitv(waitv, NR_FUTEXES, 0, &to, CLOCK_MONOTONIC); in waiterfn()
151 if (clock_gettime(CLOCK_MONOTONIC, &to)) in main()
156 res = futex_waitv(waitv, NR_FUTEXES, 0, &to, CLOCK_MONOTONIC); in main()
170 if (clock_gettime(CLOCK_MONOTONIC, &to)) in main()
175 res = futex_waitv(waitv, NR_FUTEXES, 0, &to, CLOCK_MONOTONIC); in main()
188 if (clock_gettime(CLOCK_MONOTONIC, &to)) in main()
193 res = futex_waitv(waitv, NR_FUTEXES, 0, &to, CLOCK_MONOTONIC); in main()
204 if (clock_gettime(CLOCK_MONOTONIC, &to)) in main()
209 res = futex_waitv(NULL, NR_FUTEXES, 0, &to, CLOCK_MONOTONIC); in main()
[all …]
Dfutex_wait_timeout.c153 if (futex_get_abs_timeout(CLOCK_MONOTONIC, &to, timeout_ns)) in main()
165 if (futex_get_abs_timeout(CLOCK_MONOTONIC, &to, timeout_ns)) in main()
193 if (futex_get_abs_timeout(CLOCK_MONOTONIC, &to, timeout_ns)) in main()
195 res = futex_waitv(&waitv, 1, 0, &to, CLOCK_MONOTONIC); in main()
Dfutex_wait_wouldblock.c86 if (clock_gettime(CLOCK_MONOTONIC, &to)) { in main()
99 res = futex_waitv(&waitv, 1, 0, &to, CLOCK_MONOTONIC); in main()
/linux-6.12.1/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()
/linux-6.12.1/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()
Dvfork_exec.c34 _gettime(CLOCK_MONOTONIC, &tst, i); in tcheck()
66 _gettime(CLOCK_MONOTONIC, &tst, i); in check()
98 clock_gettime(CLOCK_MONOTONIC, &now); in main()
103 if (_settime(CLOCK_MONOTONIC, OFFSET)) 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()
/linux-6.12.1/tools/testing/selftests/vDSO/
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 …]
Dvdso_test_clock_getres.c107 #ifdef CLOCK_MONOTONIC in main()
108 ret += vdso_test_clock(CLOCK_MONOTONIC); in main()
/linux-6.12.1/include/uapi/linux/
Dtime.h50 #define CLOCK_MONOTONIC 1 macro
67 #define CLOCKS_MASK (CLOCK_REALTIME | CLOCK_MONOTONIC)
68 #define CLOCKS_MONO CLOCK_MONOTONIC
/linux-6.12.1/kernel/time/
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()
Dnamespace.c29 case CLOCK_MONOTONIC: in do_timens_ktime_to_host()
188 offset[CLOCK_MONOTONIC] = monotonic; in timens_setup_vdso_data()
355 case CLOCK_MONOTONIC: in show_offset()
375 show_offset(m, CLOCK_MONOTONIC, &time_ns->offsets.monotonic); in proc_timens_show_offsets()
402 case CLOCK_MONOTONIC: in proc_timens_set_offset()
441 case CLOCK_MONOTONIC: in proc_timens_set_offset()
/linux-6.12.1/tools/testing/selftests/kvm/
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()
/linux-6.12.1/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()
/linux-6.12.1/tools/testing/selftests/mm/
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()
/linux-6.12.1/tools/testing/selftests/timers/
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()
Dmqueue-lat.c75 clock_gettime(CLOCK_MONOTONIC, &start); in mqueue_lat_test()
90 clock_gettime(CLOCK_MONOTONIC, &end); in mqueue_lat_test()
/linux-6.12.1/tools/testing/selftests/damon/
Ddebugfs_target_ids_read_before_terminate_race.c72 clock_gettime(CLOCK_MONOTONIC, &start_time); in main()
75 clock_gettime(CLOCK_MONOTONIC, &now); in main()
/linux-6.12.1/arch/um/os-Linux/
Dtime.c41 if (timer_create(CLOCK_MONOTONIC, NULL, t) == -1) in os_timer_create()
92 clock_gettime(CLOCK_MONOTONIC,&ts); in os_nsecs()

12345678910>>...12