/third_party/ltp/include/ |
D | tst_safe_clocks.h | 19 clockid_t clk_id, struct timespec *res) in safe_clock_getres() argument 23 rval = clock_getres(clk_id, res); in safe_clock_getres() 27 "clock_getres(%s) failed", tst_clock_name(clk_id)); in safe_clock_getres() 31 tst_clock_name(clk_id), rval); in safe_clock_getres() 38 clockid_t clk_id, struct timespec *tp) in safe_clock_gettime() argument 42 rval = clock_gettime(clk_id, tp); in safe_clock_gettime() 46 "clock_gettime(%s) failed", tst_clock_name(clk_id)); in safe_clock_gettime() 50 tst_clock_name(clk_id), rval); in safe_clock_gettime() 58 clockid_t clk_id, struct timespec *tp) in safe_clock_settime() argument 62 rval = clock_settime(clk_id, tp); in safe_clock_settime() [all …]
|
D | tst_timer.h | 197 static inline int libc_clock_getres(clockid_t clk_id, void *ts) in libc_clock_getres() argument 199 return clock_getres(clk_id, ts); in libc_clock_getres() 202 static inline int sys_clock_getres(clockid_t clk_id, void *ts) in sys_clock_getres() argument 204 return tst_syscall(__NR_clock_getres, clk_id, ts); in sys_clock_getres() 207 static inline int sys_clock_getres64(clockid_t clk_id, void *ts) in sys_clock_getres64() argument 209 return tst_syscall(__NR_clock_getres_time64, clk_id, ts); in sys_clock_getres64() 212 static inline int libc_clock_gettime(clockid_t clk_id, void *ts) in libc_clock_gettime() argument 214 return clock_gettime(clk_id, ts); in libc_clock_gettime() 217 static inline int sys_clock_gettime(clockid_t clk_id, void *ts) in sys_clock_gettime() argument 219 return tst_syscall(__NR_clock_gettime, clk_id, ts); in sys_clock_gettime() [all …]
|
D | tst_clocks.h | 12 int tst_clock_getres(clockid_t clk_id, struct timespec *res); 14 int tst_clock_gettime(clockid_t clk_id, struct timespec *ts); 16 int tst_clock_settime(clockid_t clk_id, struct timespec *ts); 21 const char *tst_clock_name(clockid_t clk_id);
|
D | time64_variants.h | 32 int (*clock_gettime)(clockid_t clk_id, void *ts); 33 int (*clock_settime)(clockid_t clk_id, void *ts);
|
/third_party/ltp/testcases/kernel/syscalls/clock_gettime/ |
D | clock_gettime03.c | 24 int clk_id; member 57 if (tv->clock_gettime(tc->clk_id, tst_ts_get(&then))) { in child() 59 tst_clock_name(tc->clk_id)); in child() 65 if (tv->clock_gettime(tc->clk_id, tst_ts_get(&parent_then))) { in child() 67 tst_clock_name(tc->clk_id)); in child() 75 tst_clock_name(tc->clk_id), diff); in child() 78 tst_clock_name(tc->clk_id), diff); in child() 85 tst_clock_name(tc->clk_id), diff); in child() 88 tst_clock_name(tc->clk_id), diff); in child() 102 if (tv->clock_gettime(tc->clk_id, tst_ts_get(&now))) { in verify_ns_clock() [all …]
|
D | clock_gettime04.c | 40 static inline int do_vdso_gettime(gettime_t vdso, clockid_t clk_id, void *ts) in do_vdso_gettime() argument 47 return vdso(clk_id, ts); in do_vdso_gettime() 50 static inline int vdso_gettime(clockid_t clk_id, void *ts) in vdso_gettime() argument 52 return do_vdso_gettime(ptr_vdso_gettime, clk_id, ts); in vdso_gettime() 55 static inline int vdso_gettime64(clockid_t clk_id, void *ts) in vdso_gettime64() argument 57 return do_vdso_gettime(ptr_vdso_gettime64, clk_id, ts); in vdso_gettime64() 60 static inline int my_gettimeofday(clockid_t clk_id, void *ts) in my_gettimeofday() argument 64 if (clk_id != CLOCK_REALTIME) in my_gettimeofday() 65 tst_brk(TBROK, "%s: Invalid clk_id, exiting", tst_clock_name(clk_id)); in my_gettimeofday()
|
/third_party/ltp/lib/ |
D | tst_clocks.c | 15 typedef int (*mysyscall)(clockid_t clk_id, void *ts); 28 int tst_clock_getres(clockid_t clk_id, struct timespec *res) in tst_clock_getres() argument 52 ret = func(clk_id, tst_ts_get(&tts)); in tst_clock_getres() 58 int tst_clock_gettime(clockid_t clk_id, struct timespec *ts) in tst_clock_gettime() argument 82 ret = func(clk_id, tst_ts_get(&tts)); in tst_clock_gettime() 88 int tst_clock_settime(clockid_t clk_id, struct timespec *ts) in tst_clock_settime() argument 113 return func(clk_id, tst_ts_get(&tts)); in tst_clock_settime() 116 const char *tst_clock_name(clockid_t clk_id) in tst_clock_name() argument 118 switch (clk_id) { in tst_clock_name()
|
D | tst_timer.c | 18 void tst_timer_check(clockid_t clk_id) in tst_timer_check() argument 20 if (tst_clock_gettime(clk_id, &start_time)) { in tst_timer_check() 24 tst_clock_name(clk_id), clk_id); in tst_timer_check() 32 void tst_timer_start(clockid_t clk_id) in tst_timer_start() argument 34 clock_id = clk_id; in tst_timer_start()
|
/third_party/ltp/testcases/kernel/syscalls/clock_nanosleep/ |
D | clock_nanosleep01.c | 41 clockid_t clk_id; /* clock_* clock type parameter */ member 54 .clk_id = CLOCK_REALTIME, 63 .clk_id = CLOCK_REALTIME, 72 .clk_id = CLOCK_THREAD_CPUTIME_ID, 81 .clk_id = CLOCK_REALTIME, 90 .clk_id = CLOCK_REALTIME, 97 .clk_id = CLOCK_REALTIME, 164 TEST(tv->clock_nanosleep(tc->clk_id, tc->flags, request, remain)); in do_test() 181 if (tc->clk_id == CLOCK_THREAD_CPUTIME_ID) in do_test()
|
D | clock_nanosleep02.c | 15 int sample_fn(int clk_id, long long usec) in sample_fn() argument 19 tst_timer_start(clk_id); in sample_fn() 20 TEST(clock_nanosleep(clk_id, 0, &t, NULL)); in sample_fn()
|
/third_party/ltp/testcases/kernel/syscalls/futex/ |
D | futex_wait_bitset01.c | 18 clockid_t clk_id; member 34 static void verify_futex_wait_bitset(long long wait_us, clock_t clk_id) in verify_futex_wait_bitset() argument 40 int flags = clk_id == CLOCK_REALTIME ? FUTEX_CLOCK_REALTIME : 0; in verify_futex_wait_bitset() 45 clk_id == CLOCK_REALTIME ? "CLOCK_REALTIME" : "CLOCK_MONOTONIC"); in verify_futex_wait_bitset() 47 tv->gettime(clk_id, tst_ts_get(&start)); in verify_futex_wait_bitset() 52 tv->gettime(clk_id, tst_ts_get(&end)); in verify_futex_wait_bitset() 92 verify_futex_wait_bitset(DEFAULT_TIMEOUT_US, tcases[n].clk_id); in run()
|
D | futex_wait05.c | 16 int sample_fn(int clk_id, long long usec) in sample_fn() argument 21 tst_timer_start(clk_id); in sample_fn()
|
/third_party/ltp/testcases/kernel/syscalls/timerfd/ |
D | timerfd04.c | 27 int clk_id; member 66 if (tv->clock_gettime(tc->clk_id, tst_ts_get(&start))) { in verify_timerfd() 68 tst_clock_name(tc->clk_id)); in verify_timerfd() 79 int fd = SAFE_TIMERFD_CREATE(tc->clk_id, 0); in verify_timerfd() 107 tst_clock_name(tc->clk_id), diff); in verify_timerfd() 113 tst_clock_name(tc->clk_id), diff); in verify_timerfd() 118 tst_clock_name(tc->clk_id), diff); in verify_timerfd()
|
/third_party/python/Modules/ |
D | timemodule.c | 183 long clk_id; local 184 if (!PyArg_ParseTuple(args, "l:clock_gettime", &clk_id)) { 186 int clk_id; 187 if (!PyArg_ParseTuple(args, "i:clock_gettime", &clk_id)) { 192 ret = clock_gettime((clockid_t)clk_id, &tp); 209 int clk_id; local 213 if (!PyArg_ParseTuple(args, "i:clock_gettime", &clk_id)) { 217 ret = clock_gettime((clockid_t)clk_id, &ts); 238 int clk_id; local 244 if (!PyArg_ParseTuple(args, "iO:clock_settime", &clk_id, &obj)) [all …]
|
/third_party/rust/crates/nix/src/ |
D | time.rs | 24 pub const fn from_raw(clk_id: clockid_t) -> Self { in from_raw() 25 ClockId(clk_id) in from_raw() 212 fn from(clk_id: clockid_t) -> Self { in from() 213 ClockId::from_raw(clk_id) in from() 274 let mut clk_id: MaybeUninit<libc::clockid_t> = MaybeUninit::uninit(); in clock_getcpuclockid() localVariable 276 unsafe { libc::clock_getcpuclockid(pid.into(), clk_id.as_mut_ptr()) }; in clock_getcpuclockid() 278 let res = unsafe { clk_id.assume_init() }; in clock_getcpuclockid()
|
/third_party/ltp/testcases/kernel/syscalls/clock_adjtime/ |
D | clock_adjtime.h | 118 static inline int sys_clock_adjtime(clockid_t clk_id, void *timex) in sys_clock_adjtime() argument 120 return tst_syscall(__NR_clock_adjtime, clk_id, timex); in sys_clock_adjtime() 123 static inline int sys_clock_adjtime64(clockid_t clk_id, void *timex) in sys_clock_adjtime64() argument 125 return tst_syscall(__NR_clock_adjtime64, clk_id, timex); in sys_clock_adjtime64()
|
/third_party/ltp/testcases/kernel/syscalls/clock_getres/ |
D | clock_getres01.c | 20 clockid_t clk_id; member 40 int (*func)(clockid_t clk_id, void *ts); 69 TEST(tv->func(tcase[i].clk_id, tst_ts_get(*tv->spec))); in do_test()
|
/third_party/ltp/testcases/kernel/syscalls/nanosleep/ |
D | nanosleep01.c | 17 int sample_fn(int clk_id, long long usec) in sample_fn() argument 21 tst_timer_start(clk_id); in sample_fn()
|
/third_party/ltp/testcases/kernel/syscalls/pselect/ |
D | pselect01.c | 12 int sample_fn(int clk_id, long long usec) in sample_fn() argument 20 tst_timer_start(clk_id); in sample_fn()
|
/third_party/ltp/testcases/kernel/syscalls/prctl/ |
D | prctl09.c | 17 int sample_fn(int clk_id, long long usec) in sample_fn() argument 21 tst_timer_start(clk_id); in sample_fn()
|
/third_party/ltp/testcases/kernel/syscalls/poll/ |
D | poll02.c | 18 int sample_fn(int clk_id, long long usec) in sample_fn() argument 26 tst_timer_start(clk_id); in sample_fn()
|
/third_party/ltp/testcases/kernel/syscalls/select/ |
D | select02.c | 21 static int sample_fn(int clk_id, long long usec) in sample_fn() argument 30 tst_timer_start(clk_id); in sample_fn()
|
/third_party/ltp/testcases/kernel/syscalls/epoll_wait/ |
D | epoll_wait02.c | 25 int sample_fn(int clk_id, long long usec) in sample_fn() argument 29 tst_timer_start(clk_id); in sample_fn()
|
/third_party/ltp/testcases/kernel/syscalls/epoll_pwait/ |
D | epoll_pwait03.c | 23 int sample_fn(int clk_id, long long usec) in sample_fn() argument 27 tst_timer_start(clk_id); in sample_fn()
|
/third_party/ltp/testcases/kernel/syscalls/utils/ |
D | mq_timed.h | 43 int (*gettime)(clockid_t clk_id, void *ts)) in set_sig() argument 52 int (*gettime)(clockid_t clk_id, void *ts)) in set_timeout() argument
|