/linux/tools/testing/selftests/futex/functional/ |
A D | futex_waitv.c | 43 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 …]
|
A D | futex_wait_timeout.c | 149 if (futex_get_abs_timeout(CLOCK_MONOTONIC, &to, timeout_ns)) in main() 161 if (futex_get_abs_timeout(CLOCK_MONOTONIC, &to, timeout_ns)) in main() 186 if (futex_get_abs_timeout(CLOCK_MONOTONIC, &to, timeout_ns)) in main() 188 res = futex_waitv(&waitv, 1, 0, &to, CLOCK_MONOTONIC); in main()
|
A D | futex_wait_wouldblock.c | 86 if (clock_gettime(CLOCK_MONOTONIC, &to)) { in main() 99 res = futex_waitv(&waitv, 1, 0, &to, CLOCK_MONOTONIC); in main()
|
/linux/tools/testing/radix-tree/ |
A D | benchmark.c | 26 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/ |
A D | exec.c | 32 _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()
|
A D | futex.c | 73 clock_gettime(CLOCK_MONOTONIC, &mtime_now); in main() 79 CLOCK_MONOTONIC, 70 * 24 * 3600); in main() 96 ret |= run_test(CLOCK_MONOTONIC); in main()
|
A D | gettime_perf.c | 74 test(CLOCK_MONOTONIC, "monotonic", false); in main() 88 if (_settime(CLOCK_MONOTONIC, offset)) in main() 96 test(CLOCK_MONOTONIC, "monotonic", true); in main()
|
A D | timer.c | 84 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()
|
A D | timerfd.c | 91 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()
|
A D | clock_nanosleep.c | 127 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()
|
A D | timens.h | 43 case CLOCK_MONOTONIC: in check_skip() 70 clk_id = CLOCK_MONOTONIC; in _settime()
|
/linux/include/uapi/linux/ |
A D | time.h | 50 #define CLOCK_MONOTONIC 1 macro 67 #define CLOCKS_MASK (CLOCK_REALTIME | CLOCK_MONOTONIC) 68 #define CLOCKS_MONO CLOCK_MONOTONIC
|
/linux/tools/testing/selftests/kvm/ |
A D | dirty_log_perf_test.c | 51 clock_gettime(CLOCK_MONOTONIC, &start); in vcpu_worker() 207 clock_gettime(CLOCK_MONOTONIC, &start); in run_test() 226 clock_gettime(CLOCK_MONOTONIC, &start); in run_test() 237 clock_gettime(CLOCK_MONOTONIC, &start); in run_test() 252 clock_gettime(CLOCK_MONOTONIC, &start); in run_test() 261 clock_gettime(CLOCK_MONOTONIC, &start); in run_test() 272 clock_gettime(CLOCK_MONOTONIC, &start); in run_test()
|
/linux/kernel/time/ |
A D | posix-stubs.c | 79 case CLOCK_MONOTONIC: in do_clock_gettime() 117 case CLOCK_MONOTONIC: in SYSCALL_DEFINE2() 136 case CLOCK_MONOTONIC: in SYSCALL_DEFINE4() 210 case CLOCK_MONOTONIC: in SYSCALL_DEFINE2() 229 case CLOCK_MONOTONIC: in SYSCALL_DEFINE4()
|
A D | namespace.c | 29 case CLOCK_MONOTONIC: in do_timens_ktime_to_host() 188 offset[CLOCK_MONOTONIC] = monotonic; in timens_setup_vdso_data() 337 case CLOCK_MONOTONIC: in show_offset() 357 show_offset(m, CLOCK_MONOTONIC, &time_ns->offsets.monotonic); in proc_timens_show_offsets() 384 case CLOCK_MONOTONIC: in proc_timens_set_offset() 423 case CLOCK_MONOTONIC: in proc_timens_set_offset()
|
/linux/tools/testing/selftests/powerpc/benchmarks/ |
A D | futex_bench.c | 25 clock_gettime(CLOCK_MONOTONIC, &ts_start); in test_futex() 32 clock_gettime(CLOCK_MONOTONIC, &ts_end); in test_futex()
|
A D | mmap_bench.c | 39 clock_gettime(CLOCK_MONOTONIC, &ts_start); in test_mmap() 53 clock_gettime(CLOCK_MONOTONIC, &ts_end); in test_mmap()
|
A D | null_syscall.c | 138 clock_gettime(CLOCK_MONOTONIC, &tv_start); in main() 143 clock_gettime(CLOCK_MONOTONIC, &tv_now); in main()
|
/linux/tools/testing/selftests/timers/ |
A D | adjtick.c | 75 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()
|
A D | mqueue-lat.c | 75 clock_gettime(CLOCK_MONOTONIC, &start); in mqueue_lat_test() 90 clock_gettime(CLOCK_MONOTONIC, &end); in mqueue_lat_test()
|
A D | nanosleep.c | 35 #define CLOCK_MONOTONIC 1 macro 55 case CLOCK_MONOTONIC: in clockstring()
|
/linux/tools/testing/selftests/vDSO/ |
A D | vdso_test_clock_getres.c | 107 #ifdef CLOCK_MONOTONIC in main() 108 ret += vdso_test_clock(CLOCK_MONOTONIC); in main()
|
/linux/arch/um/os-Linux/ |
A D | time.c | 47 if (timer_create(CLOCK_MONOTONIC, NULL, t) == -1) in os_timer_create() 98 clock_gettime(CLOCK_MONOTONIC,&ts); in os_nsecs()
|
/linux/tools/perf/util/ |
A D | clockid.c | 38 CLOCKID_MAP("monotonic", CLOCK_MONOTONIC), 47 CLOCKID_MAP("mono", CLOCK_MONOTONIC),
|
/linux/tools/testing/selftests/intel_pstate/ |
A D | aperf.c | 62 if (clock_gettime(CLOCK_MONOTONIC, &before) < 0) { in main() 74 if (clock_gettime(CLOCK_MONOTONIC, &after) < 0) { in main()
|