| /linux/tools/testing/selftests/futex/functional/ |
| H A D | futex_waitv.c | 34 if (clock_gettime(CLOCK_MONOTONIC, &to)) in waiterfn() 39 res = futex_waitv(waitv, NR_FUTEXES, 0, &to, CLOCK_MONOTONIC); in waiterfn() 130 if (clock_gettime(CLOCK_MONOTONIC, &to)) in TEST() 135 res = futex_waitv(waitv, NR_FUTEXES, 0, &to, CLOCK_MONOTONIC); in TEST() 154 if (clock_gettime(CLOCK_MONOTONIC, &to)) in TEST() 159 res = futex_waitv(waitv, NR_FUTEXES, 0, &to, CLOCK_MONOTONIC); in TEST() 177 if (clock_gettime(CLOCK_MONOTONIC, &to)) in TEST() 182 res = futex_waitv(waitv, NR_FUTEXES, 0, &to, CLOCK_MONOTONIC); in TEST() 192 if (clock_gettime(CLOCK_MONOTONIC, &to)) in TEST() 197 res = futex_waitv(NULL, NR_FUTEXES, 0, &to, CLOCK_MONOTONIC); in TEST() [all …]
|
| H A D | futex_wait_timeout.c | 102 if (futex_get_abs_timeout(CLOCK_MONOTONIC, &to, timeout_ns)) in TEST() 121 if (futex_get_abs_timeout(CLOCK_MONOTONIC, &to, timeout_ns)) in TEST() 175 if (futex_get_abs_timeout(CLOCK_MONOTONIC, &to, timeout_ns)) in TEST() 177 res = futex_waitv(&waitv, 1, 0, &to, CLOCK_MONOTONIC); in TEST()
|
| H A D | futex_wait_wouldblock.c | 60 if (clock_gettime(CLOCK_MONOTONIC, &to)) in TEST() 71 res = futex_waitv(&waitv, 1, 0, &to, CLOCK_MONOTONIC); in TEST()
|
| /linux/tools/testing/radix-tree/ |
| H 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/ |
| H A D | exec.c | 32 _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 D | vfork_exec.c | 34 _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 D | futex.c | 75 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 D | gettime_perf.c | 76 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 D | timer.c | 86 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 D | timerfd.c | 93 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 D | clock_nanosleep.c | 129 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 D | timens.h | 43 case CLOCK_MONOTONIC: in check_skip() 70 clk_id = CLOCK_MONOTONIC; in _settime()
|
| /linux/tools/testing/selftests/vDSO/ |
| H A D | vdso_test_getrandom.c | 180 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/include/uapi/linux/ |
| H A D | time.h | 50 #define CLOCK_MONOTONIC 1 macro 78 #define CLOCKS_MASK (CLOCK_REALTIME | CLOCK_MONOTONIC) 79 #define CLOCKS_MONO CLOCK_MONOTONIC
|
| /linux/kernel/time/ |
| H A D | posix-stubs.c | 45 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()
|
| H A D | namespace.c | 30 case CLOCK_MONOTONIC: in do_timens_ktime_to_host() 187 offset[CLOCK_MONOTONIC] = monotonic; in timens_setup_vdso_clock_data() 358 case CLOCK_MONOTONIC: in show_offset() 378 show_offset(m, CLOCK_MONOTONIC, &time_ns->offsets.monotonic); in proc_timens_show_offsets() 405 case CLOCK_MONOTONIC: in proc_timens_set_offset() 444 case CLOCK_MONOTONIC: in proc_timens_set_offset()
|
| /linux/tools/testing/selftests/powerpc/benchmarks/ |
| H 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()
|
| H 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()
|
| /linux/tools/testing/selftests/mm/ |
| H A D | transhuge-stress.c | 90 clock_gettime(CLOCK_MONOTONIC, &start); in main() 97 clock_gettime(CLOCK_MONOTONIC, &a); in main() 125 clock_gettime(CLOCK_MONOTONIC, &b); in main()
|
| /linux/tools/testing/selftests/timers/ |
| H A D | adjtick.c | 71 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 D | mqueue-lat.c | 75 clock_gettime(CLOCK_MONOTONIC, &start); in mqueue_lat_test() 90 clock_gettime(CLOCK_MONOTONIC, &end); in mqueue_lat_test()
|
| H A D | posix_timers.c | 296 if (timer_create(CLOCK_MONOTONIC, &sev, &timerid)) in check_sig_ign() 369 if (timer_create(CLOCK_MONOTONIC, &sev, &timerid)) in check_rearm() 425 if (timer_create(CLOCK_MONOTONIC, &sev, &timerid)) in check_delete() 608 return syscall(__NR_timer_create, CLOCK_MONOTONIC, NULL, id); in do_timer_create() 710 check_sigev_none(CLOCK_MONOTONIC, "CLOCK_MONOTONIC"); in main() 712 check_gettime(CLOCK_MONOTONIC, "CLOCK_MONOTONIC"); in main() 719 check_overrun(CLOCK_MONOTONIC, "CLOCK_MONOTONIC"); in main()
|
| /linux/tools/perf/util/ |
| H A D | clockid.c | 38 CLOCKID_MAP("monotonic", CLOCK_MONOTONIC), 47 CLOCKID_MAP("mono", CLOCK_MONOTONIC),
|
| /linux/tools/testing/selftests/intel_pstate/ |
| H A D | aperf.c | 62 if (clock_gettime(CLOCK_MONOTONIC, &before) < 0) { in main() 74 if (clock_gettime(CLOCK_MONOTONIC, &after) < 0) { in main()
|
| /linux/tools/testing/selftests/powerpc/stringloops/ |
| H A D | strlen.c | 41 clock_gettime(CLOCK_MONOTONIC, &ts_start); in bench_test() 46 clock_gettime(CLOCK_MONOTONIC, &ts_end); in bench_test()
|