/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/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/tools/testing/selftests/mm/ |
H A D | ksm_tests.c | 230 if (clock_gettime(CLOCK_MONOTONIC_RAW, &cur_time)) { in ksm_do_scan() 231 perror("clock_gettime"); in ksm_do_scan() 353 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in check_ksm_merge() 354 perror("clock_gettime"); in check_ksm_merge() 387 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in check_ksm_unmerge() 388 perror("clock_gettime"); in check_ksm_unmerge() 427 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in check_ksm_zero_page_merge() 428 perror("clock_gettime"); in check_ksm_zero_page_merge() 494 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in check_ksm_numa_merge() 495 perror("clock_gettime"); in check_ksm_numa_merge() [all...] |
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/futex/functional/ |
H A D | futex_waitv.c | 43 if (clock_gettime(CLOCK_MONOTONIC, &to)) in waiterfn() 151 if (clock_gettime(CLOCK_MONOTONIC, &to)) in main() 170 if (clock_gettime(CLOCK_MONOTONIC, &to)) in main() 188 if (clock_gettime(CLOCK_MONOTONIC, &to)) in main() 204 if (clock_gettime(CLOCK_MONOTONIC, &to)) in main() 220 if (clock_gettime(CLOCK_MONOTONIC, &to)) in main()
|
/linux/tools/testing/selftests/kvm/ |
H A D | dirty_log_perf_test.c | 85 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()
|
H A D | kvm_page_table_test.c | 201 clock_gettime(CLOCK_MONOTONIC, &start); in vcpu_worker() 368 clock_gettime(CLOCK_MONOTONIC, &start); in run_test() 381 clock_gettime(CLOCK_MONOTONIC, &start); in run_test() 393 clock_gettime(CLOCK_MONOTONIC, &start); in run_test()
|
/linux/tools/testing/selftests/timens/ |
H A D | futex.c | 29 clock_gettime(clockid, &timeout); in run_test() 48 clock_gettime(clockid, &end); in run_test() 73 clock_gettime(CLOCK_MONOTONIC, &mtime_now); in main()
|
H A D | timerfd.c | 22 return clock_gettime(clockid, now); in tclock_gettime() 91 clock_gettime(CLOCK_MONOTONIC, &mtime_now); in main() 92 clock_gettime(CLOCK_BOOTTIME, &btime_now); in main()
|
H A D | timens.h | 26 if (clock_gettime(CLOCK_BOOTTIME_ALARM, &ts) == -1 && errno == EINVAL) in check_supported_timers() 91 if (clock_gettime(clk_id, res)) { in _gettime()
|
H A D | timer.c | 84 clock_gettime(CLOCK_MONOTONIC, &mtime_now); in main() 85 clock_gettime(CLOCK_BOOTTIME, &btime_now); in main()
|
/linux/tools/testing/selftests/timers/ |
H A D | freq-step.c | 55 clock_gettime(CLOCK_MONOTONIC_RAW, &ts1); in get_sample() 56 clock_gettime(CLOCK_MONOTONIC, &ts2); in get_sample() 57 clock_gettime(CLOCK_MONOTONIC_RAW, &ts3); in get_sample() 208 if (clock_gettime(CLOCK_MONOTONIC_RAW, &ts)) { in init_test() 215 if (clock_gettime(CLOCK_MONOTONIC, &ts)) { in init_test()
|
H A D | posix_timers.c | 475 if (clock_gettime(which, &start)) in check_sigev_none() 479 if (clock_gettime(which, &now)) in check_sigev_none() 526 if (clock_gettime(which, &start)) in check_gettime() 530 if (clock_gettime(which, &now)) in check_gettime() 583 if (clock_gettime(which, &start)) in check_overrun() 587 if (clock_gettime(which, &now)) in check_overrun()
|
/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()
|
H 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/power/cpupower/utils/idle_monitor/ |
H A D | amd_fam14h_idle.c | 231 clock_gettime(CLOCK_REALTIME, &start_time); in amd_fam14h_start() 237 clock_gettime(CLOCK_REALTIME, &dbg_time); in amd_fam14h_start() 250 clock_gettime(CLOCK_REALTIME, &end_time); in amd_fam14h_stop() 257 clock_gettime(CLOCK_REALTIME, &dbg_time); in amd_fam14h_stop()
|
/linux/tools/testing/selftests/seccomp/ |
H A D | seccomp_benchmark.c | 32 assert(clock_gettime(clk_id, &start) == 0); in timing() 37 assert(clock_gettime(clk_id, &finish) == 0); in timing() 62 assert(clock_gettime(CLOCK_MONOTONIC, &start) == 0); in calibrate() 68 assert(clock_gettime(CLOCK_MONOTONIC, &finish) == 0); in calibrate()
|
/linux/tools/testing/selftests/damon/ |
H A D | debugfs_target_ids_read_before_terminate_race.c |
|
/linux/tools/testing/selftests/mqueue/ |
H A D | mq_perf_tests.c | 352 clock_gettime(clock, &start); \ 355 clock_gettime(clock, &middle); \ 358 clock_gettime(clock, &end); \ 487 clock_gettime(clock, &start); in perf_test_thread() 492 clock_gettime(clock, &end); in perf_test_thread() 516 clock_gettime(clock, &start); in perf_test_thread() 518 clock_gettime(clock, &end); in perf_test_thread()
|
/linux/arch/x86/entry/vdso/ |
H A D | vclock_gettime.c | 41 int clock_gettime(clockid_t, struct __kernel_timespec *) 59 int clock_gettime(clockid_t, struct old_timespec32 *)
|
/linux/arch/um/os-Linux/ |
H A D | time.c | 30 clock_gettime(CLOCK_REALTIME, &realtime_tp); in os_persistent_clock_emulation() 92 clock_gettime(CLOCK_MONOTONIC,&ts); in os_nsecs()
|
/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()
|
/linux/tools/testing/selftests/net/ |
H A D | stress_reuseport_listen.c | 85 clock_gettime(CLOCK_MONOTONIC, &start_ts); in main() 91 clock_gettime(CLOCK_MONOTONIC, &end_ts); in main()
|