/linux-6.6.21/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()
|
/linux-6.6.21/tools/testing/selftests/rcutorture/bin/ |
D | mkinitrd.sh | 59 tv.tv_usec += tv.tv_sec * 1000 * 1000; 60 tv.tv_usec -= tvb.tv_usec; 61 } while (tv.tv_usec < 1000);
|
/linux-6.6.21/fs/ |
D | utimes.c | 189 if (times[0].tv_usec >= 1000000 || times[0].tv_usec < 0 || in do_futimesat() 190 times[1].tv_usec >= 1000000 || times[1].tv_usec < 0) in do_futimesat() 194 tstimes[0].tv_nsec = 1000 * times[0].tv_usec; in do_futimesat() 196 tstimes[1].tv_nsec = 1000 * times[1].tv_usec; in do_futimesat() 275 get_user(tv[0].tv_nsec, &t[0].tv_usec) || in do_compat_futimesat() 277 get_user(tv[1].tv_nsec, &t[1].tv_usec)) in do_compat_futimesat()
|
/linux-6.6.21/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() 476 tv.tv_usec = (suseconds_t)ts.tv_nsec / 1000; in ns_to_kernel_old_timeval()
|
/linux-6.6.21/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 | 278 delta_usec = (t1.tv_sec - t0.tv_sec) * 1000000 + t1.tv_usec - t0.tv_usec; in child_thread() 301 total_usec = 1000000*ru.ru_utime.tv_sec + ru.ru_utime.tv_usec + in child_thread() 302 1000000*ru.ru_stime.tv_sec + ru.ru_stime.tv_usec; in child_thread() 309 (double)ru.ru_utime.tv_sec + (double)ru.ru_utime.tv_usec / 1000000.0, in child_thread() 310 (double)ru.ru_stime.tv_sec + (double)ru.ru_stime.tv_usec / 1000000.0, in child_thread()
|
/linux-6.6.21/tools/include/nolibc/ |
D | unistd.h | 28 (my_timeval.tv_usec / 1000) + in msleep() 29 !!(my_timeval.tv_usec % 1000); in msleep() 40 return my_timeval.tv_sec + !!my_timeval.tv_usec; in sleep()
|
/linux-6.6.21/tools/perf/bench/ |
D | breakpoint.c | 158 (long)diff.tv_sec, (long)(diff.tv_usec / USEC_PER_MSEC)); in bench_breakpoint_thread() 159 result_usec = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in bench_breakpoint_thread() 167 printf("%lu.%03lu\n", (long)diff.tv_sec, (long)(diff.tv_usec / USEC_PER_MSEC)); in bench_breakpoint_thread() 250 (long)diff.tv_sec, (long)(diff.tv_usec / USEC_PER_MSEC)); in bench_breakpoint_enable() 251 result_usec = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in bench_breakpoint_enable() 255 printf("%lu.%03lu\n", (long)diff.tv_sec, (long)(diff.tv_usec / USEC_PER_MSEC)); in bench_breakpoint_enable()
|
D | syscall.c | 137 result_usec += diff.tv_usec; in bench_syscall_common() 141 (unsigned long) (diff.tv_usec/1000)); in bench_syscall_common() 153 (unsigned long) (diff.tv_usec / 1000)); in bench_syscall_common()
|
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 | sched-seccomp-notify.c | 151 result_usec += diff.tv_usec; in bench_sched_seccomp_notify() 155 (unsigned long) (diff.tv_usec / USEC_PER_MSEC)); in bench_sched_seccomp_notify() 167 (unsigned long) (diff.tv_usec / USEC_PER_MSEC)); in bench_sched_seccomp_notify()
|
D | futex-requeue.c | 267 update_stats(&requeuetime_stats, runtime.tv_usec); in bench_futex_requeue() 274 runtime.tv_usec / (double)USEC_PER_MSEC); in bench_futex_requeue() 281 runtime.tv_usec / (double)USEC_PER_MSEC); in bench_futex_requeue()
|
/linux-6.6.21/include/uapi/linux/ |
D | time_types.h | 27 __kernel_long_t tv_usec; member 43 __s64 tv_usec; member
|
/linux-6.6.21/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.6.21/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.6.21/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.6.21/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.6.21/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.6.21/fs/hostfs/ |
D | hostfs_user.c | 246 times[0].tv_usec = st.atime.tv_nsec / 1000; in set_attr() 248 times[1].tv_usec = st.mtime.tv_nsec / 1000; in set_attr() 252 times[0].tv_usec = attrs->ia_atime.tv_nsec / 1000; in set_attr() 256 times[1].tv_usec = attrs->ia_mtime.tv_nsec / 1000; in set_attr()
|
/linux-6.6.21/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.6.21/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 } };
|
/linux-6.6.21/tools/perf/ui/tui/ |
D | setup.c | 68 timeout.tv_usec = 0; in ui__getch() 89 timeout.tv_usec = 20; in ui__getch()
|