/linux-6.1.9/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()
|
D | posix_timers.c | 66 diff = end.tv_usec - start.tv_usec; in check_diff()
|
/linux-6.1.9/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);
|
/linux-6.1.9/fs/ |
D | utimes.c | 188 if (times[0].tv_usec >= 1000000 || times[0].tv_usec < 0 || in do_futimesat() 189 times[1].tv_usec >= 1000000 || times[1].tv_usec < 0) in do_futimesat() 193 tstimes[0].tv_nsec = 1000 * times[0].tv_usec; in do_futimesat() 195 tstimes[1].tv_nsec = 1000 * times[1].tv_usec; in do_futimesat() 274 get_user(tv[0].tv_nsec, &t[0].tv_usec) || in do_compat_futimesat() 276 get_user(tv[1].tv_nsec, &t[1].tv_usec)) in do_compat_futimesat()
|
/linux-6.1.9/tools/include/nolibc/ |
D | unistd.h | 23 (my_timeval.tv_usec / 1000) + in msleep() 24 !!(my_timeval.tv_usec % 1000); in msleep() 35 return my_timeval.tv_sec + !!my_timeval.tv_usec; in sleep()
|
/linux-6.1.9/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()
|
/linux-6.1.9/tools/testing/selftests/net/ |
D | timestamping.c | 147 (long)now.tv_sec, (long)now.tv_usec, in sendpacket() 167 (long)now.tv_sec, (long)now.tv_usec, in printpacket() 185 (long)stamp->tv_usec); in printpacket() 265 (long)tv.tv_usec); in printpacket() 499 next.tv_usec = 0; in main() 509 (long)(next.tv_usec - now.tv_usec); in main() 513 delta.tv_usec = delta_us % 1000000; in main() 520 (long)now.tv_sec, (long)now.tv_usec, in main() 525 (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()
|
/linux-6.1.9/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 | breakpoint.c | 146 (long)diff.tv_sec, (long)(diff.tv_usec / USEC_PER_MSEC)); in bench_breakpoint_thread() 147 result_usec = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in bench_breakpoint_thread() 155 printf("%lu.%03lu\n", (long)diff.tv_sec, (long)(diff.tv_usec / USEC_PER_MSEC)); in bench_breakpoint_thread() 232 (long)diff.tv_sec, (long)(diff.tv_usec / USEC_PER_MSEC)); in bench_breakpoint_enable() 233 result_usec = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in bench_breakpoint_enable() 237 printf("%lu.%03lu\n", (long)diff.tv_sec, (long)(diff.tv_usec / USEC_PER_MSEC)); in bench_breakpoint_enable()
|
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()
|
D | futex-requeue.c | 266 update_stats(&requeuetime_stats, runtime.tv_usec); in bench_futex_requeue() 273 runtime.tv_usec / (double)USEC_PER_MSEC); in bench_futex_requeue() 280 runtime.tv_usec / (double)USEC_PER_MSEC); in bench_futex_requeue()
|
/linux-6.1.9/include/uapi/linux/ |
D | time_types.h | 27 __kernel_long_t tv_usec; member 43 __s64 tv_usec; member
|
/linux-6.1.9/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()
|
/linux-6.1.9/tools/testing/selftests/vDSO/ |
D | vdso_test_correctness.c | 239 return a->tv_usec <= b->tv_usec; in tv_leq() 409 (unsigned long long)start.tv_sec, start.tv_usec, in test_gettimeofday() 410 (unsigned long long)vdso.tv_sec, vdso.tv_usec, in test_gettimeofday() 411 (unsigned long long)end.tv_sec, end.tv_usec); in test_gettimeofday()
|
/linux-6.1.9/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()
|
/linux-6.1.9/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 } };
|
/linux-6.1.9/samples/bpf/ |
D | hbm.c | 238 (t_new.tv_usec - t0.tv_usec)/1000; in run_bpf_prog() 242 (t_new.tv_usec - t_last.tv_usec); in run_bpf_prog()
|
/linux-6.1.9/arch/sparc/vdso/ |
D | vclock_gettime.c | 326 tstv->tv.tv_usec = tstv->ts.tv_nsec; in __vdso_gettimeofday() 327 tstv->tv.tv_usec /= 1000; in __vdso_gettimeofday() 362 tstv->tv.tv_usec = tstv->ts.tv_nsec; in __vdso_gettimeofday_stick() 363 tstv->tv.tv_usec /= 1000; in __vdso_gettimeofday_stick()
|
/linux-6.1.9/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()
|
/linux-6.1.9/tools/perf/ui/tui/ |
D | setup.c | 69 timeout.tv_usec = 0; in ui__getch() 90 timeout.tv_usec = 20; in ui__getch()
|
/linux-6.1.9/Documentation/translations/zh_TW/admin-guide/ |
D | cpu-load.rst | 75 struct itimerval it = { .it_interval = { .tv_sec = 0, .tv_usec = 1 }, 76 .it_value = { .tv_sec = 0, .tv_usec = 1 } };
|