/kernel/liteos_a/testsuites/unittest/libc/time/timer/smoke/ |
D | timer_test_002.cpp | 48 itv.it_value.tv_usec = 500000; // 500000, 500ms. in TimerTest() 50 itv.it_interval.tv_usec = 500000; // 500000, 500ms. in TimerTest() 75 …ICUNIT_ASSERT_EQUAL(itv.it_interval.tv_usec, 500000, itv.it_interval.tv_usec); // 500000, assert t… in TimerTest() 79 itv.it_value.tv_usec = 0; in TimerTest() 81 itv.it_interval.tv_usec = 0; in TimerTest()
|
/kernel/linux/linux-5.10/tools/testing/selftests/timers/ |
D | valid-adjtimex.c | 206 tmx.time.tv_usec = offset % NSEC_PER_SEC; in set_offset() 208 if (offset < 0 && tmx.time.tv_usec) { in set_offset() 210 tmx.time.tv_usec += NSEC_PER_SEC; in set_offset() 214 tmx.time.tv_usec = offset % USEC_PER_SEC; in set_offset() 216 if (offset < 0 && tmx.time.tv_usec) { in set_offset() 218 tmx.time.tv_usec += USEC_PER_SEC; in set_offset() 224 printf("(sec: %ld usec: %ld) ", tmx.time.tv_sec, tmx.time.tv_usec); in set_offset() 241 tmx.time.tv_usec = usec; in set_bad_offset() 244 printf("Invalid (sec: %ld usec: %ld) did not fail! ", tmx.time.tv_sec, tmx.time.tv_usec); in set_bad_offset()
|
D | leap-a-day.c | 143 tx.time.tv_usec, in sigalarm() 152 tx.time.tv_usec, in sigalarm() 253 tv.tv_usec = 0; in main() 349 tx.time.tv_usec, in main()
|
D | rtcpie.c | 113 diff.tv_usec > ((1000000L / tmp) * 1.10)) { in main() 115 diff.tv_sec, diff.tv_usec, in main()
|
/kernel/linux/linux-5.10/tools/testing/selftests/rcutorture/bin/ |
D | mkinitrd.sh | 56 tv.tv_usec += tv.tv_sec * 1000 * 1000; 57 tv.tv_usec -= tvb.tv_usec; 58 } while (tv.tv_usec < 1000);
|
/kernel/linux/linux-5.10/fs/ |
D | utimes.c | 187 if (times[0].tv_usec >= 1000000 || times[0].tv_usec < 0 || in do_futimesat() 188 times[1].tv_usec >= 1000000 || times[1].tv_usec < 0) in do_futimesat() 192 tstimes[0].tv_nsec = 1000 * times[0].tv_usec; in do_futimesat() 194 tstimes[1].tv_nsec = 1000 * times[1].tv_usec; in do_futimesat() 273 get_user(tv[0].tv_nsec, &t[0].tv_usec) || in do_compat_futimesat() 275 get_user(tv[1].tv_nsec, &t[1].tv_usec)) in do_compat_futimesat()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
D | timestamping.c | 130 (long)now.tv_sec, (long)now.tv_usec, in sendpacket() 148 (long)now.tv_sec, (long)now.tv_usec, in printpacket() 166 (long)stamp->tv_usec); in printpacket() 247 (long)tv.tv_usec); in printpacket() 463 next.tv_usec = 0; in main() 473 (long)(next.tv_usec - now.tv_usec); in main() 477 delta.tv_usec = delta_us % 1000000; in main() 484 (long)now.tv_sec, (long)now.tv_usec, in main() 489 (long)now.tv_sec, (long)now.tv_usec, in main()
|
D | tcp_mmap.c | 237 delta_usec = (t1.tv_sec - t0.tv_sec) * 1000000 + t1.tv_usec - t0.tv_usec; in child_thread() 246 total_usec = 1000000*ru.ru_utime.tv_sec + ru.ru_utime.tv_usec + in child_thread() 247 1000000*ru.ru_stime.tv_sec + ru.ru_stime.tv_usec; in child_thread() 254 (double)ru.ru_utime.tv_sec + (double)ru.ru_utime.tv_usec / 1000000.0, in child_thread() 255 (double)ru.ru_stime.tv_sec + (double)ru.ru_stime.tv_usec / 1000000.0, in child_thread()
|
/kernel/linux/linux-5.10/kernel/time/ |
D | itimer.c | 106 v.it_interval.tv_usec = i->it_interval.tv_nsec / NSEC_PER_USEC; in put_itimerval() 108 v.it_value.tv_usec = i->it_value.tv_nsec / NSEC_PER_USEC; in put_itimerval() 135 v32.it_interval.tv_usec = i->it_interval.tv_nsec / NSEC_PER_USEC; in put_old_itimerval32() 137 v32.it_value.tv_usec = i->it_value.tv_nsec / NSEC_PER_USEC; in put_old_itimerval32() 204 (((t)->tv_sec >= 0) && (((unsigned long) (t)->tv_usec) < USEC_PER_SEC)) 326 o->it_interval.tv_nsec = v.it_interval.tv_usec * NSEC_PER_USEC; in get_itimerval() 328 o->it_value.tv_nsec = v.it_value.tv_usec * NSEC_PER_USEC; in get_itimerval() 372 o->it_interval.tv_nsec = v32.it_interval.tv_usec * NSEC_PER_USEC; in get_old_itimerval32() 374 o->it_value.tv_nsec = v32.it_value.tv_usec * NSEC_PER_USEC; in get_old_itimerval32()
|
D | time.c | 148 put_user(ts.tv_nsec / 1000, &tv->tv_usec)) in SYSCALL_DEFINE2() 207 get_user(new_ts.tv_nsec, &tv->tv_usec)) in SYSCALL_DEFINE2() 232 put_user(ts.tv_nsec / 1000, &tv->tv_usec)) in COMPAT_SYSCALL_DEFINE2() 251 get_user(new_ts.tv_nsec, &tv->tv_usec)) in COMPAT_SYSCALL_DEFINE2() 304 txc->time.tv_usec = tx32.time.tv_usec; in get_old_timex32() 333 tx32.time.tv_usec = txc->time.tv_usec; in put_old_timex32() 458 tv.tv_usec = (suseconds_t)ts.tv_nsec / 1000; in ns_to_kernel_old_timeval()
|
/kernel/linux/linux-5.10/tools/perf/bench/ |
D | syscall.c | 54 result_usec += diff.tv_usec; in bench_syscall_basic() 58 (unsigned long) (diff.tv_usec/1000)); in bench_syscall_basic() 70 (unsigned long) (diff.tv_usec / 1000)); in bench_syscall_basic()
|
D | sched-pipe.c | 156 result_usec += diff.tv_usec; in bench_sched_pipe() 160 (unsigned long) (diff.tv_usec / USEC_PER_MSEC)); in bench_sched_pipe() 172 (unsigned long) (diff.tv_usec / USEC_PER_MSEC)); in bench_sched_pipe()
|
/kernel/liteos_a/compat/posix/src/ |
D | time.c | 90 if ((tv->tv_usec < 0) || (tv->tv_usec >= OS_SYS_US_PER_SECOND) || (tv->tv_sec < 0)) { in ValidTimeval() 105 if ((tv->tv_usec < 0) || (tv->tv_usec >= OS_SYS_US_PER_SECOND) || (tv->tv_sec < 0)) { in ValidTimeval64() 206 oldDelta->tv_usec = (g_adjTimeLeft % OS_SYS_NS_PER_SECOND) / OS_SYS_NS_PER_US; in adjtime() 209 oldDelta->tv_usec = -((g_adjTimeLeft % OS_SYS_NS_PER_SECOND) / OS_SYS_NS_PER_US); in adjtime() 213 if ((delta == NULL) || ((delta->tv_sec == 0) && (delta->tv_usec == 0))) { in adjtime() 218 if ((delta->tv_usec > OS_SYS_US_PER_SECOND) || (delta->tv_usec < -OS_SYS_US_PER_SECOND)) { in adjtime() 233 g_adjTimeLeft = (INT64)delta->tv_sec * OS_SYS_NS_PER_SECOND + delta->tv_usec * OS_SYS_NS_PER_US; in adjtime() 302 setTime.tv_nsec = tv->tv_usec * OS_SYS_NS_PER_US; in OsSetTimeOfDay() 329 stTimeVal64.tv_usec = tv->tv_usec; in settimeofday() 350 tv.tv_usec = 0; in setlocalseconds() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/x86/ |
D | test_vdso.c | 199 return a->tv_usec <= b->tv_usec; in tv_leq() 306 (unsigned long long)start.tv_sec, start.tv_usec, in test_gettimeofday() 307 (unsigned long long)vdso.tv_sec, vdso.tv_usec, in test_gettimeofday() 308 (unsigned long long)end.tv_sec, end.tv_usec); in test_gettimeofday()
|
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/benchmarks/ |
D | gettimeofday.c | 23 …printf("time = %.6f\n", tv_end.tv_sec - tv_start.tv_sec + (tv_end.tv_usec - tv_start.tv_usec) * 1e… in test_gettimeofday()
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | time_types.h | 27 __kernel_long_t tv_usec; member 43 __s64 tv_usec; member
|
/kernel/liteos_a/testsuites/unittest/process/lock/mutex/smoke/ |
D | pthread_mutex_test_008.cpp | 53 time.tv_nsec = timeVal.tv_usec + 0; in ThreadFuncTest3() 79 time.tv_nsec = timeVal.tv_usec + 0; in ThreadFuncTest2() 106 time.tv_nsec = timeVal.tv_usec + 0; in ThreadFuncTest1()
|
D | pthread_mutex_test_019.cpp | 75 if(timeVal.tv_usec + 100000 >= 1000000) { // 100000us, delay time; 1000000us, compare in ThreadFuncTest1() 77 …time.tv_nsec = (timeVal.tv_usec + 100000 - 1000000) * 1000; // 100000, delaytime; 1000, us to ns; … in ThreadFuncTest1() 80 time.tv_nsec = (timeVal.tv_usec + 100000) * 1000; // 1000, 100000us to ns in ThreadFuncTest1()
|
D | pthread_mutex_test_007.cpp | 56 time.tv_nsec = timeVal.tv_usec + 0; in ThreadFuncTest3() 90 time.tv_nsec = timeVal.tv_usec + 0; in ThreadFuncTest2() 124 time.tv_nsec = timeVal.tv_usec + 0; in ThreadFuncTest1()
|
/kernel/liteos_a/testsuites/unittest/process/lock/mutex/full/ |
D | pthread_mutex_test_018.cpp | 76 if(timeVal.tv_usec + 100000 >= 1000000) { // 100000us, delay time; 1000000us, compare in ThreadFuncTest1() 78 …time.tv_nsec = (timeVal.tv_usec + 100000 - 1000000) * 1000; // 100000, delaytime; 1000, us to ns; … in ThreadFuncTest1() 81 time.tv_nsec = (timeVal.tv_usec + 100000) * 1000; // 1000, 100000us to ns in ThreadFuncTest1()
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | time.h | 18 __kernel_suseconds_t tv_usec; member 49 __kernel_long_t tv_usec; member
|
/kernel/linux/linux-5.10/arch/sparc/kernel/ |
D | sys_sparc_64.c | 568 txc.time.tv_usec = tv->tv_usec; in SYSCALL_DEFINE1() 570 tv->tv_usec = txc.time.tv_usec; in SYSCALL_DEFINE1() 601 txc.time.tv_usec = tv->tv_usec; in SYSCALL_DEFINE2() 603 tv->tv_usec = txc.time.tv_usec; in SYSCALL_DEFINE2()
|
/kernel/linux/linux-5.10/kernel/ |
D | compat.c | 88 r32.ru_utime.tv_usec = r->ru_utime.tv_usec; in put_compat_rusage() 90 r32.ru_stime.tv_usec = r->ru_stime.tv_usec; in put_compat_rusage()
|
/kernel/linux/linux-5.10/Documentation/translations/zh_CN/admin-guide/ |
D | cpu-load.rst | 69 struct itimerval it = { .it_interval = { .tv_sec = 0, .tv_usec = 1 }, 70 .it_value = { .tv_sec = 0, .tv_usec = 1 } };
|
/kernel/linux/linux-5.10/fs/hostfs/ |
D | hostfs_user.c | 245 times[0].tv_usec = st.atime.tv_nsec / 1000; in set_attr() 247 times[1].tv_usec = st.mtime.tv_nsec / 1000; in set_attr() 251 times[0].tv_usec = attrs->ia_atime.tv_nsec / 1000; in set_attr() 255 times[1].tv_usec = attrs->ia_mtime.tv_nsec / 1000; in set_attr()
|