/third_party/rust/crates/rustix/src/backend/libc/time/ |
H A D | syscalls.rs | 49 let mut timespec = MaybeUninit::<LibcTimespec>::uninit(); variables 59 ret(libc_clock_getres(id as c::clockid_t, timespec.as_mut_ptr())).unwrap(); 60 timespec.assume_init().into() 72 let _ = c::clock_getres(id as c::clockid_t, timespec.as_mut_ptr()); 73 timespec.assume_init() 83 let mut old_timespec = MaybeUninit::<c::timespec>::uninit(); in clock_getres_old() 100 let mut timespec = MaybeUninit::<LibcTimespec>::uninit(); variables 110 timespec.as_mut_ptr(), 113 timespec.assume_init().into() 128 ret(c::clock_gettime(id as c::clockid_t, timespec 155 let mut timespec = MaybeUninit::<LibcTimespec>::uninit(); global() variables [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/timers/ |
H A D | adjtick.c | 44 unsigned long long ts_to_nsec(struct timespec ts) in ts_to_nsec() 49 struct timespec nsec_to_ts(long long ns) in nsec_to_ts() 51 struct timespec ts; in nsec_to_ts() 59 long long diff_timespec(struct timespec start, struct timespec end) in diff_timespec() 69 void get_monotonic_and_raw(struct timespec *mon, struct timespec *raw) in get_monotonic_and_raw() 71 struct timespec start, mid, end; in get_monotonic_and_raw() 98 struct timespec mon_start, raw_start, mon_end, raw_end; in get_ppm_drift() 170 struct timespec ra in main() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/timers/ |
H A D | adjtick.c | 44 unsigned long long ts_to_nsec(struct timespec ts) in ts_to_nsec() 49 struct timespec nsec_to_ts(long long ns) in nsec_to_ts() 51 struct timespec ts; in nsec_to_ts() 59 long long diff_timespec(struct timespec start, struct timespec end) in diff_timespec() 69 void get_monotonic_and_raw(struct timespec *mon, struct timespec *raw) in get_monotonic_and_raw() 71 struct timespec start, mid, end; in get_monotonic_and_raw() 98 struct timespec mon_start, raw_start, mon_end, raw_end; in get_ppm_drift() 170 struct timespec ra in main() [all...] |
/third_party/musl/porting/liteos_m/user/include/ |
H A D | usr_lib_ops.h | 73 int (*pthread_mutex_timedlock)(pthread_mutex_t *mutex, const struct timespec *absTimeout); 84 int (*pthread_cond_timedwait)(pthread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec *ts); 90 int (*sem_timedwait)(sem_t *sem, const struct timespec *timeout); 92 int (*nanosleep)(const struct timespec *rqtp, struct timespec *rmtp); 98 int (*clock_settime)(clockid_t clockID, const struct timespec *tp); 99 int (*clock_gettime)(clockid_t clockID, struct timespec *tp); 100 int (*clock_getres)(clockid_t clockID, struct timespec *tp); 101 int (*clock_nanosleep)(clockid_t clk, int flags, const struct timespec *req, struct timespec *re [all...] |
/third_party/musl/porting/liteos_a/kernel/include/ |
H A D | time.h | 66 int timespec_get(struct timespec *, int); 86 struct timespec it_interval; 87 struct timespec it_value; 116 int nanosleep (const struct timespec *, struct timespec *); 117 int clock_getres (clockid_t, struct timespec *); 118 int clock_gettime (clockid_t, struct timespec *); 119 int clock_settime (clockid_t, const struct timespec *); 120 int clock_nanosleep (clockid_t, int, const struct timespec *, struct timespec *); [all...] |
/third_party/musl/include/ |
H A D | time.h | 63 int timespec_get(struct timespec *, int); 84 struct timespec it_interval; 85 struct timespec it_value; 103 int nanosleep (const struct timespec *, struct timespec *); 104 int clock_getres (clockid_t, struct timespec *); 105 int clock_gettime (clockid_t, struct timespec *); 106 int clock_settime (clockid_t, const struct timespec *); 107 int clock_nanosleep (clockid_t, int, const struct timespec *, struct timespec *); [all...] |
H A D | pthread.h | 112 int pthread_mutex_timedlock(pthread_mutex_t *__restrict, const struct timespec *__restrict); 124 * @param timespec the timeout shall expire specified by abstime passes. 129 int pthread_mutex_clocklock(pthread_mutex_t *__restrict, clockid_t, const struct timespec *__restrict); 138 * @param timespec the timeout shall expire specified by abstime passes. 143 int pthread_mutex_timedlock_monotonic_np(pthread_mutex_t *__restrict, const struct timespec *__restrict); 164 * @param timespec The timeout shall expire specified by abstime passes. 171 clockid_t, const struct timespec *__restrict); 179 * @param timespec The timeout shall expire specified by abstime passes. 186 const struct timespec *__restrict); 211 * @param timespec th [all...] |
/third_party/musl/porting/linux/user/src/time/ |
H A D | clock_gettime.c | 13 static int cgt_time32_wrap(clockid_t clk, struct timespec *ts) in cgt_time32_wrap() 34 static int cgt_init(clockid_t clk, struct timespec *ts) in cgt_init() 47 int (*f)(clockid_t, struct timespec *) = in cgt_init() 48 (int (*)(clockid_t, struct timespec *))p; in cgt_init() 57 int __clock_gettime(clockid_t clk, struct timespec *ts) in __clock_gettime() 62 int (*f)(clockid_t, struct timespec *) = in __clock_gettime() 63 (int (*)(clockid_t, struct timespec *))vdso_func; in __clock_gettime()
|
/third_party/musl/src/time/ |
H A D | clock_getres.c | 13 static int cgr_init(clockid_t clk, struct timespec *ts) in cgr_init() 17 int (*f)(clockid_t, struct timespec *) = in cgr_init() 18 (int (*)(clockid_t, struct timespec *))p; in cgr_init() 28 int clock_getres(clockid_t clk, struct timespec *ts) in clock_getres() 32 int (*f)(clockid_t, struct timespec *) = in clock_getres() 33 (int (*)(clockid_t, struct timespec *))vdso_cgr; in clock_getres() 54 * 32-bit arch and we can get result directly into timespec. */ in clock_getres()
|
H A D | clock_gettime.c | 13 static int cgt_time32_wrap(clockid_t clk, struct timespec *ts) in cgt_time32_wrap() 34 static int cgt_init(clockid_t clk, struct timespec *ts) in cgt_init() 62 int (*f)(clockid_t, struct timespec *) = in cgt_init() 63 (int (*)(clockid_t, struct timespec *))p; in cgt_init() 72 int __clock_gettime(clockid_t clk, struct timespec *ts) in __clock_gettime() 77 int (*f)(clockid_t, struct timespec *) = in __clock_gettime() 78 (int (*)(clockid_t, struct timespec *))vdso_func; in __clock_gettime()
|
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/ |
H A D | dirty_log_perf_test.c | 40 struct timespec start; in vcpu_worker() 41 struct timespec ts_diff; in vcpu_worker() 42 struct timespec total = (struct timespec){0}; in vcpu_worker() 43 struct timespec avg; in vcpu_worker() 104 struct timespec start; in run_test() 105 struct timespec ts_diff; in run_test() 106 struct timespec get_dirty_log_total = (struct timespec){0}; in run_test() 107 struct timespec vcpu_dirty_tota in run_test() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/ |
H A D | dirty_log_perf_test.c | 76 struct timespec start; in vcpu_worker() 77 struct timespec ts_diff; in vcpu_worker() 78 struct timespec total = (struct timespec){0}; in vcpu_worker() 79 struct timespec avg; in vcpu_worker() 147 struct timespec start; in run_test() 148 struct timespec ts_diff; in run_test() 149 struct timespec get_dirty_log_total = (struct timespec){0}; in run_test() 150 struct timespec vcpu_dirty_tota in run_test() [all...] |
/third_party/musl/libc-test/src/functionalext/thread/ |
H A D | pthread_rwlock_wrlock.c | 38 struct timespec ts = {0}; in RwlockClockRealTimeOut2() 39 struct timespec tsNow = {0}; in RwlockClockRealTimeOut2() 66 struct timespec ts = {0}; in RwlockClockRealTimeWait2() 86 struct timespec ts = {0}; in RwlockClockMonotonicTimeOut2() 87 struct timespec tsNow = {0}; in RwlockClockMonotonicTimeOut2() 116 struct timespec ts = {0}; in RwlockClockMonotonicTimeWait2() 135 struct timespec ts = {0}; in RwlockMonotonicTime2() 136 struct timespec tsNow = {0}; in RwlockMonotonicTime2() 165 struct timespec ts = {0}; in RwlockMonotonicTime4() 182 struct timespec t in pthread_rwlock_timedwrlock_0010() [all...] |
H A D | pthread_rwlock_rdlock.c | 33 struct timespec ts = {0}; in PthreadClockRdlockNoOutRealTimeR2() 74 struct timespec ts = {0}; in PthreadClockRdlockOutRealTimeR2() 75 struct timespec tsNow = {0}; in PthreadClockRdlockOutRealTimeR2() 118 struct timespec ts = {0}; in PthreadClockRdlockNoOutMonoTimeR2() 159 struct timespec ts = {0}; in PthreadClockRdlockOutMonoTimeR2() 160 struct timespec tsNow = {0}; in PthreadClockRdlockOutMonoTimeR2() 202 struct timespec ts = {0}; in PthreadTimedRdlockMonoNPNoOutR2() 243 struct timespec ts = {0}; in PthreadTimedRdlockMonoNPOutR2() 244 struct timespec tsNow = {0}; in PthreadTimedRdlockMonoNPOutR2() 279 struct timespec t in pthread_rwlock_timedrdlock_monotonic_np_0030() [all...] |
H A D | pthread_cond_timedwait.c | 20 pthread_mutex_t *__restrict, const struct timespec *__restrict); 61 struct timespec ts = {0}; in pthread_cond_timedwait_0010() 88 struct timespec ts = {0}; in pthread_cond_timedwait_0020() 111 struct timespec ts = {0}; in pthread_cond_timedwait_time64_0010() 135 struct timespec ts = {0}; in pthread_cond_timedwait_monotonic_np_0010() 160 struct timespec ts = {0}; in pthread_cond_timedwait_monotonic_np_0020() 195 struct timespec ts = {0}; in pthread_cond_clockwait_0010() 222 struct timespec ts; in pthread_cond_timedwait_Time_0010() 246 struct timespec ts = {0}; in ClockWaitTimedwait2() 279 struct timespec t in ClockWaitTimeOut() [all...] |
/kernel/liteos_m/testsuites/unittest/posix/src/semaphore/ |
H A D | semaphore_func_test.c | 72 struct timespec GetDelayedTime(unsigned int ms) in GetDelayedTime() 75 struct timespec ts = { 0 }; in GetDelayedTime() 79 struct timespec tsNow = { 0 }; in GetDelayedTime() 88 int GetTimeDiff(struct timespec ts1, struct timespec ts2) in GetTimeDiff() 105 struct timespec ts = { 0 }; 106 struct timespec tsNow = { 0 }; 136 struct timespec ts = { 0 }; 137 struct timespec tsNow = { 0 }; 138 struct timespec tsBegi [all...] |
/third_party/ltp/testcases/kernel/syscalls/statx/ |
H A D | statx06.c | 40 struct timespec *timespec) in timestamp_to_timespec() 42 timespec->tv_sec = timestamp->tv_sec; in timestamp_to_timespec() 43 timespec->tv_nsec = timestamp->tv_nsec; in timestamp_to_timespec() 48 struct timespec res; in clock_wait_tick() 102 struct timespec before_time; in test_statx() 103 struct timespec after_time; in test_statx() 104 struct timespec statx_time = {0, 0}; in test_statx() 39 timestamp_to_timespec(const struct statx_timestamp *timestamp, struct timespec *timespec) timestamp_to_timespec() argument
|
/third_party/mesa3d/include/android_stub/log/ |
H A D | log_time.h | 22 /* struct log_time is a wire-format variant of struct timespec */ 40 static constexpr timespec EPOCH = {0, 0}; 43 explicit log_time(const timespec& T) in log_time() 50 timespec T; in log_time() 56 /* timespec */ 57 bool operator==(const timespec& T) const { in operator ==() 61 bool operator!=(const timespec& T) const { in operator !=() 64 bool operator<(const timespec& T) const { in operator <() 69 bool operator>=(const timespec& T) const { in operator >=() 72 bool operator>(const timespec in operator >=() [all...] |
/third_party/musl/porting/linux/user/include/ |
H A D | pthread.h | 137 int pthread_mutex_timedlock(pthread_mutex_t *__restrict, const struct timespec *__restrict); 149 * @param timespec the timeout shall expire specified by abstime passes. 154 int pthread_mutex_clocklock(pthread_mutex_t *__restrict, clockid_t, const struct timespec *__restrict); 163 * @param timespec the timeout shall expire specified by abstime passes. 168 int pthread_mutex_timedlock_monotonic_np(pthread_mutex_t *__restrict, const struct timespec *__restrict); 190 int pthread_cond_timedwait(pthread_cond_t *__restrict, pthread_mutex_t *__restrict, const struct timespec *__restrict); 197 * @param timespec The timeout shall expire specified by abstime passes. 204 clockid_t, const struct timespec *__restrict); 212 * @param timespec The timeout shall expire specified by abstime passes. 219 const struct timespec *__restric [all...] |
/third_party/mesa3d/src/util/ |
H A D | futex.h | 41 static inline long sys_futex(void *addr1, int op, int val1, const struct timespec *timeout, void *addr2, int val3) in sys_futex() 51 static inline int futex_wait(uint32_t *addr, int32_t value, const struct timespec *timeout) in futex_wait() 75 static inline int futex_wait(uint32_t *addr, int32_t value, struct timespec *timeout) in futex_wait() 105 static inline int futex_wait(uint32_t *addr, int32_t value, const struct timespec *timeout) in futex_wait() 107 struct timespec tsnow, tsrel; in futex_wait() 142 static inline int futex_wait(uint32_t *addr, int32_t value, const struct timespec *timeout) in futex_wait() 146 struct timespec tsnow; in futex_wait()
|
/third_party/ltp/testcases/kernel/syscalls/clock_gettime/ |
H A D | leapsec01.c | 37 static const char *strtime(const struct timespec *now) in strtime() 52 static inline int in_order(struct timespec a, struct timespec b) in in_order() 75 struct timespec now; in adjtimex_status() 96 struct timespec now, target; in test_hrtimer_early_expiration() 124 const struct timespec sleeptime = { 0, NSEC_PER_SEC / 2 }; in run_leapsec() 125 struct timespec now, leap, start; in run_leapsec() 190 struct timespec now; in cleanup()
|
/third_party/ntfs-3g/include/ntfs-3g/ |
H A D | ntfstime.h | 40 * assume "struct timespec" is not defined if st_mtime is not defined 43 struct timespec { struct 68 static __inline__ struct timespec ntfs2timespec(ntfs_time ntfstime) in ntfs2timespec() 70 struct timespec spec; in ntfs2timespec() 99 static __inline__ ntfs_time timespec2ntfs(struct timespec spec) in timespec2ntfs() 114 struct timespec now; in ntfs_current_time()
|
/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/ |
H A D | thread_callonce_test.cpp | 14 timespec shrotTime = { .tv_sec = 1 }; in CallThrdSleep() 26 timespec oTs; in HWTEST_F() 33 timespec dTs; in HWTEST_F() 46 timespec oTs; in HWTEST_F() 53 timespec dTs; in HWTEST_F()
|
/third_party/musl/libc-test/src/functionalext/supplement/time/ |
H A D | nanosleep.c | 19 extern int __nanosleep_time64(const struct timespec *, struct timespec *); 28 struct timespec n_sleep; in nanosleep_0100() 42 struct timespec n_sleep; in nanosleep_time64_0100()
|
/kernel/liteos_m/kal/posix/src/ |
H A D | time.c | 51 STATIC struct timespec g_accDeltaFromSet; 94 int nanosleep(const struct timespec *rqtp, struct timespec *rmtp) in nanosleep() 278 STATIC VOID OsGetHwTime(struct timespec *hwTime) in OsGetHwTime() 288 STATIC VOID OsGetRealTime(struct timespec *realTime) in OsGetRealTime() 291 struct timespec hwTime = {0}; in OsGetRealTime() 300 STATIC VOID OsSetRealTime(const struct timespec *realTime) in OsSetRealTime() 303 struct timespec hwTime = {0}; in OsSetRealTime() 312 int clock_settime(clockid_t clockID, const struct timespec *tp) in clock_settime() 351 int clock_gettime(clockid_t clockID, struct timespec *t [all...] |