| /linux-6.15/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-6.15/tools/testing/selftests/futex/functional/ |
| H A D | futex_wait_timeout.c | 147 if (futex_get_abs_timeout(CLOCK_REALTIME, &to, timeout_ns)) in main() 159 if (futex_get_abs_timeout(CLOCK_REALTIME, &to, timeout_ns)) in main() 183 if (futex_get_abs_timeout(CLOCK_REALTIME, &to, timeout_ns)) in main() 199 if (futex_get_abs_timeout(CLOCK_REALTIME, &to, timeout_ns)) in main() 201 res = futex_waitv(&waitv, 1, 0, &to, CLOCK_REALTIME); in main()
|
| /linux-6.15/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 | nanosleep.c | 41 case CLOCK_REALTIME: in clockstring() 128 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 | 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-6.15/include/uapi/linux/ |
| H A D | time.h | 49 #define CLOCK_REALTIME 0 macro 67 #define CLOCKS_MASK (CLOCK_REALTIME | CLOCK_MONOTONIC)
|
| /linux-6.15/tools/testing/selftests/vDSO/ |
| H A D | vdso_test_clock_getres.c | 91 #ifdef CLOCK_REALTIME in main() 92 ret += vdso_test_clock(CLOCK_REALTIME); in main()
|
| H A D | vdso_test_abi.c | 203 #ifdef CLOCK_REALTIME in main() 204 vdso_test_clock(CLOCK_REALTIME); in main()
|
| /linux-6.15/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() 245 clock_gettime(CLOCK_REALTIME, &time_end[cpu]); in mperf_stop()
|
| /linux-6.15/tools/testing/selftests/timens/ |
| H A D | futex.c | 26 if (clockid == CLOCK_REALTIME) in run_test() 95 ret |= run_test(CLOCK_REALTIME); in main()
|
| H A D | timens.h | 44 case CLOCK_REALTIME: in check_skip()
|
| /linux-6.15/tools/testing/selftests/ptp/ |
| H A D | testptp.c | 195 clockid_t ext_clockid = CLOCK_REALTIME; in main() 290 ext_clockid = CLOCK_REALTIME; in main() 404 clock_gettime(CLOCK_REALTIME, &ts); in main() 414 if (clock_settime(CLOCK_REALTIME, &ts)) { in main() 605 case CLOCK_REALTIME: in main() 626 case CLOCK_REALTIME: in main()
|
| /linux-6.15/tools/perf/util/ |
| H A D | clockid.c | 42 CLOCKID_MAP("realtime", CLOCK_REALTIME), 49 CLOCKID_MAP("real", CLOCK_REALTIME),
|
| /linux-6.15/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-6.15/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-6.15/include/linux/ |
| H A D | ptp_clock_kernel.h | 464 case CLOCK_REALTIME: in ptp_read_system_prets() 483 case CLOCK_REALTIME: in ptp_read_system_postts()
|
| /linux-6.15/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-6.15/rust/kernel/ |
| H A D | time.rs | 112 RealTime = bindings::CLOCK_REALTIME,
|
| /linux-6.15/Documentation/translations/zh_CN/userspace-api/ |
| H A D | futex2.rst | 67 参数中指定要使用的时钟类型。支持 ``CLOCK_MONOTONIC`` 和 ``CLOCK_REALTIME`` 。这个
|