Home
last modified time | relevance | path

Searched refs:CLOCK_REALTIME (Results 1 – 25 of 69) sorted by relevance

123

/linux/kernel/time/
H A Dposix-stubs.c31 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 Dfutex_wait_timeout.c147 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/include/uapi/linux/
H A Dtime.h49 #define CLOCK_REALTIME 0 macro
67 #define CLOCKS_MASK (CLOCK_REALTIME | CLOCK_MONOTONIC)
/linux/tools/power/cpupower/utils/idle_monitor/
H A Damd_fam14h_idle.c231 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 Dcpuidle_sysfs.c47 clock_gettime(CLOCK_REALTIME, &start_time); in cpuidle_start()
64 clock_gettime(CLOCK_REALTIME, &end_time); in cpuidle_stop()
H A Dcpupower-monitor.c290 clock_gettime(CLOCK_REALTIME, &start); in fork_it()
312 clock_gettime(CLOCK_REALTIME, &end); in fork_it()
/linux/tools/testing/selftests/vDSO/
H A Dvdso_test_clock_getres.c91 #ifdef CLOCK_REALTIME in main()
92 ret += vdso_test_clock(CLOCK_REALTIME); in main()
H A Dvdso_test_abi.c203 #ifdef CLOCK_REALTIME in main()
204 vdso_test_clock(CLOCK_REALTIME); in main()
/linux/tools/testing/selftests/timens/
H A Dfutex.c26 if (clockid == CLOCK_REALTIME) in run_test()
95 ret |= run_test(CLOCK_REALTIME); in main()
H A Dtimens.h44 case CLOCK_REALTIME: in check_skip()
/linux/tools/perf/util/
H A Dclockid.c42 CLOCKID_MAP("realtime", CLOCK_REALTIME),
49 CLOCKID_MAP("real", CLOCK_REALTIME),
/linux/tools/perf/bench/
H A Duprobe.c158 clock_gettime(CLOCK_REALTIME, &start); in bench_uprobe()
164 clock_gettime(CLOCK_REALTIME, &end); in bench_uprobe()
/linux/drivers/md/dm-vdo/
H A Dtime-utils.h25 return current_time_ns(CLOCK_REALTIME) / NSEC_PER_USEC; in current_time_us()
/linux/arch/um/drivers/
H A Drtc_user.c35 uml_rtc_irq_fds[0] = timerfd_create(CLOCK_REALTIME, TFD_CLOEXEC); in uml_rtc_start()
/linux/tools/testing/selftests/timers/
H A Dleapcrash.c75 clock_gettime(CLOCK_REALTIME, &ts); in main()
/linux/Documentation/translations/zh_CN/userspace-api/
H A Dfutex2.rst67 参数中指定要使用的时钟类型。支持 ``CLOCK_MONOTONIC`` 和 ``CLOCK_REALTIME`` 。这个
/linux/arch/um/os-Linux/
H A Dtime.c30 clock_gettime(CLOCK_REALTIME, &realtime_tp); in os_persistent_clock_emulation()
/linux/kernel/futex/
H A Dsyscalls.c238 if (clockid == CLOCK_REALTIME) { in futex2_setup_timeout()
243 if (clockid != CLOCK_REALTIME && clockid != CLOCK_MONOTONIC) in futex2_setup_timeout()
/linux/lib/vdso/
H A Dgettimeofday.c323 if (do_hres(&vd[CS_HRES_COARSE], CLOCK_REALTIME, &ts)) in __cvdso_gettimeofday_data()
358 t = READ_ONCE(vd[CS_HRES_COARSE].basetime[CLOCK_REALTIME].sec); in __cvdso_time_data()
/linux/Documentation/virt/kvm/devices/
H A Dvcpu.rst230 kvmclock nanoseconds (guest_src), and host CLOCK_REALTIME nanoseconds
242 kvmclock (guest_src) and CLOCK_REALTIME (host_src) in their respective
248 the guest (e.g., timeouts) unless CLOCK_REALTIME is synchronized
/linux/tools/testing/selftests/kvm/x86_64/
H A Dkvm_clock_test.c
/linux/Documentation/timers/
H A Dhrtimers.rst38 the required readjusting of absolute CLOCK_REALTIME timers at
105 absolute timers based on a low-resolution CLOCK_REALTIME. The existing
107 CLOCK_REALTIME timers along with complex locking. In case of
/linux/Documentation/virt/kvm/x86/
H A Dhypercalls.rst115 is supported (corresponding to the host's CLOCK_REALTIME clock).
135 compute the CLOCK_REALTIME for its clock, at the same instant.
/linux/drivers/pps/generators/
H A Dpps_gen_parport.c211 hrtimer_init(&device.timer, CLOCK_REALTIME, HRTIMER_MODE_ABS); in parport_attach()
/linux/tools/testing/selftests/hid/
H A Dhidraw.c190 clock_gettime(CLOCK_REALTIME, &time_to_wait); in TEST_F()

123