Home
last modified time | relevance | path

Searched refs:tv_usec (Results 1 – 25 of 141) sorted by relevance

123456

/linux-6.6.21/tools/testing/selftests/timers/
Dvalid-adjtimex.c206 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()
Dleap-a-day.c143 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()
Drtcpie.c113 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/
Dmkinitrd.sh59 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/
Dutimes.c189 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/
Ditimer.c106 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()
Dtime.c148 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/
Dtimestamping.c147 (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()
Dtcp_mmap.c278 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/
Dunistd.h28 (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/
Dbreakpoint.c158 (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()
Dsyscall.c137 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()
Dsched-pipe.c156 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()
Dsched-seccomp-notify.c151 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()
Dfutex-requeue.c267 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/
Dtime_types.h27 __kernel_long_t tv_usec; member
43 __s64 tv_usec; member
/linux-6.6.21/arch/sparc/kernel/
Dsys_sparc_64.c568 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/
Dvdso_test_correctness.c239 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/
Dcompat.c88 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/
Dcpu-load.rst69 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/
Dvclock_gettime.c326 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/
Dhostfs_user.c246 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/
Dhbm.c238 (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/
Dcpu-load.rst75 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/
Dsetup.c68 timeout.tv_usec = 0; in ui__getch()
89 timeout.tv_usec = 20; in ui__getch()

123456