Home
last modified time | relevance | path

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

123456

/linux-6.3-rc2/tools/testing/selftests/timers/
A 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()
A 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()
A Drtcpie.c113 diff.tv_usec > ((1000000L / tmp) * 1.10)) { in main()
115 diff.tv_sec, diff.tv_usec, in main()
A Dposix_timers.c66 diff = end.tv_usec - start.tv_usec; in check_diff()
/linux-6.3-rc2/tools/testing/selftests/rcutorture/bin/
A Dmkinitrd.sh56 tv.tv_usec += tv.tv_sec * 1000 * 1000;
57 tv.tv_usec -= tvb.tv_usec;
58 } while (tv.tv_usec < 1000);
/linux-6.3-rc2/fs/
A 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.3-rc2/tools/include/nolibc/
A Dunistd.h23 (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.3-rc2/kernel/time/
A 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()
A 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()
458 tv.tv_usec = (suseconds_t)ts.tv_nsec / 1000; in ns_to_kernel_old_timeval()
/linux-6.3-rc2/tools/testing/selftests/net/
A 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()
A Dtcp_mmap.c238 delta_usec = (t1.tv_sec - t0.tv_sec) * 1000000 + t1.tv_usec - t0.tv_usec; in child_thread()
247 total_usec = 1000000*ru.ru_utime.tv_sec + ru.ru_utime.tv_usec + in child_thread()
248 1000000*ru.ru_stime.tv_sec + ru.ru_stime.tv_usec; in child_thread()
255 (double)ru.ru_utime.tv_sec + (double)ru.ru_utime.tv_usec / 1000000.0, in child_thread()
256 (double)ru.ru_stime.tv_sec + (double)ru.ru_stime.tv_usec / 1000000.0, in child_thread()
/linux-6.3-rc2/tools/perf/bench/
A Dbreakpoint.c146 (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()
A Dsyscall.c107 result_usec += diff.tv_usec; in bench_syscall_common()
111 (unsigned long) (diff.tv_usec/1000)); in bench_syscall_common()
123 (unsigned long) (diff.tv_usec / 1000)); in bench_syscall_common()
A 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()
A Dfutex-requeue.c266 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.3-rc2/include/uapi/linux/
A Dtime_types.h27 __kernel_long_t tv_usec; member
43 __s64 tv_usec; member
/linux-6.3-rc2/arch/sparc/kernel/
A 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.3-rc2/tools/testing/selftests/vDSO/
A 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.3-rc2/kernel/
A 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.3-rc2/Documentation/translations/zh_CN/admin-guide/
A 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.3-rc2/arch/sparc/vdso/
A 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.3-rc2/fs/hostfs/
A Dhostfs_user.c245 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.3-rc2/samples/bpf/
A 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.3-rc2/tools/perf/ui/tui/
A Dsetup.c69 timeout.tv_usec = 0; in ui__getch()
90 timeout.tv_usec = 20; in ui__getch()
/linux-6.3-rc2/Documentation/translations/zh_TW/admin-guide/
A Dcpu-load.rst75 struct itimerval it = { .it_interval = { .tv_sec = 0, .tv_usec = 1 },
76 .it_value = { .tv_sec = 0, .tv_usec = 1 } };

Completed in 42 milliseconds

123456