Home
last modified time | relevance | path

Searched refs:clockid (Results 1 - 25 of 34) sorted by relevance

12

/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_getcpuclockid/
H A D1-2.c30 clockid_t clockid; in main()
38 error = clock_getcpuclockid(1, &clockid); in main()
48 if (clock_gettime(clockid, &tp1) != 0) { in main()
50 "%d\n", clockid); in main()
H A D1-1.c39 clockid_t clockid; in main()
48 if (clock_getcpuclockid(getpid(), &clockid) != 0) { in main()
57 if (clock_gettime(clockid, &tp1) != 0) { in main()
60 clockid); in main()
/third_party/ltp/lib/
H A Dtst_safe_timerfd.c15 int clockid, int flags) in safe_timerfd_create()
19 fd = timerfd_create(clockid, flags); in safe_timerfd_create()
23 "timerfd_create(%s) failed", tst_clock_name(clockid)); in safe_timerfd_create()
27 tst_clock_name(clockid), fd); in safe_timerfd_create()
14 safe_timerfd_create(const char *file, const int lineno, int clockid, int flags) safe_timerfd_create() argument
/third_party/rust/crates/rustix/src/backend/linux_raw/
H A Dvdso_wrappers.rs242 clockid: c::c_int,
245 match _rustix_clock_gettime_via_syscall(clockid, res) {
253 clockid: c::c_int, in _rustix_clock_gettime_via_syscall()
256 let r0 = syscall!(__NR_clock_gettime64, c_int(clockid), res); in _rustix_clock_gettime_via_syscall()
258 Err(io::Errno::NOSYS) => _rustix_clock_gettime_via_syscall_old(clockid, res), in _rustix_clock_gettime_via_syscall()
265 clockid: c::c_int, in _rustix_clock_gettime_via_syscall_old()
274 let r0 = syscall!(__NR_clock_gettime, c_int(clockid), &mut old_result); in _rustix_clock_gettime_via_syscall_old()
290 clockid: c::c_int, in _rustix_clock_gettime_via_syscall()
293 ret(syscall!(__NR_clock_gettime, c_int(clockid), res)) in _rustix_clock_gettime_via_syscall()
/third_party/ltp/include/
H A Dtst_safe_clocks.h77 clockid_t clockid, struct sigevent *sevp, timer_t *timerid) in safe_timer_create()
82 ret = timer_create(clockid, sevp, timerid); in safe_timer_create()
86 "timer_create(%s) failed", tst_clock_name(clockid)); in safe_timer_create()
90 tst_clock_name(clockid), ret); in safe_timer_create()
162 #define SAFE_TIMER_CREATE(clockid, sevp, timerid)\
163 safe_timer_create(__FILE__, __LINE__, (clockid), (sevp), (timerid))
76 safe_timer_create(const char *file, const int lineno, clockid_t clockid, struct sigevent *sevp, timer_t *timerid) safe_timer_create() argument
H A Dtst_safe_timerfd.h12 int clockid, int flags);
14 #define SAFE_TIMERFD_CREATE(clockid, flags)\
15 safe_timerfd_create(__FILE__, __LINE__, (clockid), (flags))
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setclock/
H A D1-3.c38 clockid_t clockid; in main() local
56 if (clock_getcpuclockid(getpid(), &clockid) != 0) { in main()
61 rc = pthread_condattr_setclock(&condattr, clockid); in main()
/third_party/musl/src/thread/
H A Dpthread_getcpuclockid.c3 int pthread_getcpuclockid(pthread_t t, clockid_t *clockid) in pthread_getcpuclockid() argument
5 *clockid = (-t->tid-1)*8U + 6; in pthread_getcpuclockid()
/third_party/ltp/testcases/kernel/syscalls/futex/
H A Dfutex2test.h25 struct timespec *timo, clockid_t clockid) in futex_waitv()
27 return tst_syscall(__NR_futex_waitv, waiters, nr_waiters, flags, timo, clockid); in futex_waitv()
23 futex_waitv(volatile struct futex_waitv *waiters, unsigned long nr_waiters, unsigned long flags, struct timespec *timo, clockid_t clockid) futex_waitv() argument
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_getclock/
H A D1-1.c26 clockid_t clockid; in main() local
37 rc = pthread_condattr_getclock(&condattr, &clockid); in main()
H A D1-2.c27 clockid_t clockid; in main() local
44 rc = pthread_condattr_getclock(&condattr, &clockid); in main()
/third_party/ltp/testcases/kernel/syscalls/timerfd/
H A Dtimerfd_create01.c11 * - clockid argument is neither CLOCK_MONOTONIC nor CLOCK_REALTIME,
22 int clockid; member
34 TST_EXP_FAIL(timerfd_create(test->clockid, test->flags), test->exp_errno); in run()
H A Dtimerfd01.c42 static unsigned long long getustime(int clockid) in getustime() argument
47 if (tv->clock_gettime((clockid_t) clockid, tst_ts_get(&tp))) { in getustime()
/third_party/ltp/include/lapi/
H A Dtimerfd.h19 static inline int timerfd_create(int clockid, int flags) in timerfd_create() argument
21 return tst_syscall(__NR_timerfd_create, clockid, flags); in timerfd_create()
/third_party/rust/crates/rustix/src/time/
H A Dtimerfd.rs6 /// `timerfd_create(clockid, flags)`—Create a timer.
13 pub fn timerfd_create(clockid: TimerfdClockId, flags: TimerfdFlags) -> io::Result<OwnedFd> { in timerfd_create()
14 backend::time::syscalls::timerfd_create(clockid, flags) in timerfd_create()
17 /// `timerfd_settime(clockid, flags, new_value)`—Set the time on a timer.
32 /// `timerfd_gettime(clockid, flags)`—Query a timer.
/third_party/musl/src/linux/
H A Dtimerfd.c7 int timerfd_create(int clockid, int flags) in timerfd_create() argument
9 return syscall(SYS_timerfd_create, clockid, flags); in timerfd_create()
/third_party/musl/libc-test/src/functionalext/common/
H A Dpthread_util.h64 static inline void GetDelayedTimeByClockid(struct timespec *ts, unsigned int ms, clockid_t clockid) in GetDelayedTimeByClockid() argument
69 clock_gettime(clockid, &tsNow); in GetDelayedTimeByClockid()
/third_party/rust/crates/nix/src/sys/
H A Dtimer.rs34 //! let clockid = ClockId::CLOCK_MONOTONIC;
40 //! let mut timer = Timer::new(clockid, sigevent).unwrap();
71 /// Creates a new timer based on the clock defined by `clockid`. The details
74 pub fn new(clockid: ClockId, mut sigevent: SigEvent) -> Result<Self> { in new()
79 clockid.as_raw(), in new()
H A Dtimerfd.rs92 /// Creates a new timer based on the clock defined by `clockid`. The
96 pub fn new(clockid: ClockId, flags: TimerFlags) -> Result<Self> { in new()
98 libc::timerfd_create(clockid as i32, flags.bits()) in new()
/third_party/rust/crates/nix/test/
H A Dtest_timer.rs46 let clockid = ClockId::CLOCK_MONOTONIC; in alarm_fires()
52 Timer::new(clockid, sigevent).expect("failed to create timer"); in alarm_fires()
/third_party/rust/crates/rustix/src/backend/linux_raw/time/
H A Dsyscalls.rs70 pub(crate) fn timerfd_create(clockid: TimerfdClockId, flags: TimerfdFlags) -> io::Result<OwnedFd> {
71 unsafe { ret_owned_fd(syscall!(__NR_timerfd_create, clockid, flags)) }
/third_party/libevdev/test/
H A Dtest-libevdev-init.c545 int clockid; in START_TEST() local
565 clockid = CLOCK_MONOTONIC_FAST; in START_TEST()
567 clockid = CLOCK_MONOTONIC_RAW; in START_TEST()
570 rc = libevdev_set_clock_id(dev, clockid); in START_TEST()
/third_party/libevdev/libevdev/
H A Dlibevdev.h1974 * @param clockid The clock to use for future events. Permitted values
1978 int libevdev_set_clock_id(struct libevdev *dev, int clockid);
/third_party/libevdev/export_include/libevdev/
H A Dlibevdev.h1974 * @param clockid The clock to use for future events. Permitted values
1978 int libevdev_set_clock_id(struct libevdev *dev, int clockid);
/third_party/libbpf/include/uapi/linux/
H A Dperf_event.h446 use_clockid : 1, /* use @clockid for time fields */
492 __s32 clockid; member

Completed in 14 milliseconds

12