| /linux/kernel/time/ |
| H A D | posix-stubs.c | 31 if (which_clock != CLOCK_REALTIME) in SYSCALL_DEFINE2() 42 case CLOCK_REALTIME: in do_clock_gettime() 83 case CLOCK_REALTIME: in SYSCALL_DEFINE2() 102 case CLOCK_REALTIME: in SYSCALL_DEFINE4() 134 if (which_clock != CLOCK_REALTIME) in SYSCALL_DEFINE2() 166 case CLOCK_REALTIME: in SYSCALL_DEFINE2() 185 case CLOCK_REALTIME: in SYSCALL_DEFINE4()
|
| /linux/tools/testing/selftests/futex/functional/ |
| H A D | futex_wait_timeout.c | 96 if (futex_get_abs_timeout(CLOCK_REALTIME, &to, timeout_ns)) in TEST() 115 if (futex_get_abs_timeout(CLOCK_REALTIME, &to, timeout_ns)) in TEST() 152 if (futex_get_abs_timeout(CLOCK_REALTIME, &to, timeout_ns)) in TEST() 181 if (futex_get_abs_timeout(CLOCK_REALTIME, &to, timeout_ns)) in TEST() 183 res = futex_waitv(&waitv, 1, 0, &to, CLOCK_REALTIME); in TEST()
|
| /linux/tools/testing/selftests/timers/ |
| H A D | leap-a-day.c | 164 clock_gettime(CLOCK_REALTIME, &now); in test_hrtimer_failure() 166 clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, &target, NULL); in test_hrtimer_failure() 167 clock_gettime(CLOCK_REALTIME, &now); in test_hrtimer_failure() 243 clock_gettime(CLOCK_REALTIME, &ts); in main() 296 if (timer_create(CLOCK_REALTIME, &se, &tm1) == -1) { in main() 311 while (clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, &ts, NULL)) in main()
|
| H A D | nsleep-lat.c | 40 case CLOCK_REALTIME: in clockstring() 138 ksft_set_plan(max_clocks - CLOCK_REALTIME - SKIPPED_CLOCK_COUNT); in main() 140 for (clockid = CLOCK_REALTIME; clockid < max_clocks; clockid++) { in main()
|
| H A D | inconsistency-check.c | 42 case CLOCK_REALTIME: in clockstring() 143 int userclock = CLOCK_REALTIME; in main()
|
| H A D | nanosleep.c | 41 case CLOCK_REALTIME: in clockstring() 178 for (clockid = CLOCK_REALTIME; clockid < max_clocks; clockid++) { in main()
|
| H A D | valid-adjtimex.c | 219 ret = clock_adjtime(CLOCK_REALTIME, &tmx); in set_offset() 239 ret = clock_adjtime(CLOCK_REALTIME, &tmx); in set_bad_offset()
|
| H A D | leapcrash.c | 75 clock_gettime(CLOCK_REALTIME, &ts); in main()
|
| H A D | mqueue-lat.c | 80 clock_gettime(CLOCK_REALTIME, &now); in mqueue_lat_test()
|
| /linux/include/uapi/linux/ |
| H A D | time.h | 49 #define CLOCK_REALTIME 0 macro 78 #define CLOCKS_MASK (CLOCK_REALTIME | CLOCK_MONOTONIC)
|
| /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()
|
| H A D | cpuidle_sysfs.c | 47 clock_gettime(CLOCK_REALTIME, &start_time); in cpuidle_start() 64 clock_gettime(CLOCK_REALTIME, &end_time); in cpuidle_stop()
|
| H A D | mperf_monitor.c | 230 clock_gettime(CLOCK_REALTIME, &time_start[cpu]); in mperf_start() 243 clock_gettime(CLOCK_REALTIME, &time_end[cpu]); in mperf_stop()
|
| /linux/tools/testing/selftests/timens/ |
| H A D | futex.c | 26 if (clockid == CLOCK_REALTIME) in run_test() 97 ret |= run_test(CLOCK_REALTIME); in main()
|
| H A D | timens.h | 44 case CLOCK_REALTIME: in check_skip()
|
| /linux/tools/testing/selftests/ptp/ |
| H A D | testptp.c | 197 clockid_t ext_clockid = CLOCK_REALTIME; in main() 297 ext_clockid = CLOCK_REALTIME; in main() 411 clock_gettime(CLOCK_REALTIME, &ts); in main() 421 if (clock_settime(CLOCK_REALTIME, &ts)) { in main() 612 case CLOCK_REALTIME: in main() 633 case CLOCK_REALTIME: in main()
|
| /linux/tools/perf/util/ |
| H A D | clockid.c | 42 CLOCKID_MAP("realtime", CLOCK_REALTIME), 49 CLOCKID_MAP("real", CLOCK_REALTIME),
|
| /linux/tools/perf/bench/ |
| H A D | uprobe.c | 158 clock_gettime(CLOCK_REALTIME, &start); in bench_uprobe() 164 clock_gettime(CLOCK_REALTIME, &end); in bench_uprobe()
|
| /linux/drivers/md/dm-vdo/ |
| H A D | time-utils.h | 25 return current_time_ns(CLOCK_REALTIME) / NSEC_PER_USEC; in current_time_us()
|
| /linux/tools/testing/selftests/vDSO/ |
| H A D | vdso_test_abi.c | 42 [CLOCK_REALTIME] = "CLOCK_REALTIME", 235 vdso_test_clock(CLOCK_REALTIME); in main()
|
| /linux/tools/include/nolibc/sys/ |
| H A D | time.h | 33 ret = sys_clock_gettime(CLOCK_REALTIME, &tp); in sys_gettimeofday()
|
| /linux/arch/um/drivers/ |
| H A D | rtc_user.c | 35 uml_rtc_irq_fds[0] = timerfd_create(CLOCK_REALTIME, TFD_CLOEXEC); in uml_rtc_start()
|
| /linux/Documentation/translations/zh_CN/userspace-api/ |
| H A D | futex2.rst | 67 参数中指定要使用的时钟类型。支持 ``CLOCK_MONOTONIC`` 和 ``CLOCK_REALTIME`` 。这个
|
| /linux/include/vdso/ |
| H A D | datapage.h | 43 #define VDSO_HRES (BIT(CLOCK_REALTIME) | \
|
| /linux/arch/um/os-Linux/ |
| H A D | time.c | 33 clock_gettime(CLOCK_REALTIME, &realtime_tp); in os_persistent_clock_emulation()
|