Home
last modified time | relevance | path

Searched refs:tv_nsec (Results 1 – 25 of 429) sorted by relevance

12345678910>>...18

/linux/tools/testing/selftests/bpf/progs/
A Dtest_vmlinux.c22 long tv_nsec; in handle__tp() local
28 if (bpf_probe_read_user(&tv_nsec, sizeof(ts->tv_nsec), &ts->tv_nsec) || in handle__tp()
29 tv_nsec != MY_TV_NSEC) in handle__tp()
40 long tv_nsec; in BPF_PROG() local
46 if (bpf_probe_read_user(&tv_nsec, sizeof(ts->tv_nsec), &ts->tv_nsec) || in BPF_PROG()
47 tv_nsec != MY_TV_NSEC) in BPF_PROG()
58 long tv_nsec; in BPF_PROG() local
64 if (bpf_probe_read_user(&tv_nsec, sizeof(ts->tv_nsec), &ts->tv_nsec) || in BPF_PROG()
65 tv_nsec != MY_TV_NSEC) in BPF_PROG()
/linux/fs/
A Dutimes.c28 !nsec_valid(times[1].tv_nsec)) in vfs_utimes()
31 times[1].tv_nsec == UTIME_NOW) in vfs_utimes()
222 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2()
223 tv[1].tv_nsec = 0; in SYSCALL_DEFINE2()
244 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2()
245 tv[1].tv_nsec = 0; in SYSCALL_DEFINE2()
260 if (tv[0].tv_nsec == UTIME_OMIT && tv[1].tv_nsec == UTIME_OMIT) in SYSCALL_DEFINE4()
278 if (tv[0].tv_nsec >= 1000000 || tv[0].tv_nsec < 0 || in do_compat_futimesat()
279 tv[1].tv_nsec >= 1000000 || tv[1].tv_nsec < 0) in do_compat_futimesat()
281 tv[0].tv_nsec *= 1000; in do_compat_futimesat()
[all …]
/linux/fs/ext4/
A Dinode-test.c89 .expected = {.tv_sec = -0x80000000LL, .tv_nsec = 0L},
97 .expected = {.tv_sec = -1LL, .tv_nsec = 0L},
113 .expected = {.tv_sec = 0x7fffffffLL, .tv_nsec = 0L},
121 .expected = {.tv_sec = 0x80000000LL, .tv_nsec = 0L},
129 .expected = {.tv_sec = 0xffffffffLL, .tv_nsec = 0L},
137 .expected = {.tv_sec = 0x100000000LL, .tv_nsec = 0L},
145 .expected = {.tv_sec = 0x17fffffffLL, .tv_nsec = 0L},
153 .expected = {.tv_sec = 0x180000000LL, .tv_nsec = 0L},
194 .tv_nsec = MAX_NANOSECONDS},
261 test_param->expected.tv_nsec, in inode_test_xtimestamp_decoding()
[all …]
/linux/include/linux/
A Dtime64.h15 long tv_nsec; /* nanoseconds */ member
46 return (a->tv_sec == b->tv_sec) && (a->tv_nsec == b->tv_nsec); in timespec64_equal()
60 return lhs->tv_nsec - rhs->tv_nsec; in timespec64_compare()
70 lhs.tv_nsec + rhs.tv_nsec); in timespec64_add()
82 lhs.tv_nsec - rhs.tv_nsec); in timespec64_sub()
95 if ((unsigned long)ts->tv_nsec >= NSEC_PER_SEC) in timespec64_valid()
136 return ((s64) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec; in timespec64_to_ns()
157 a->tv_sec += __iter_div_u64_rem(a->tv_nsec + ns, NSEC_PER_SEC, &ns); in timespec64_add_ns()
158 a->tv_nsec = ns; in timespec64_add_ns()
/linux/fs/fat/
A Dfat_test.c35 .ts = {.tv_sec = 315532800LL, .tv_nsec = 0L},
43 .ts = {.tv_sec = 4354819198LL, .tv_nsec = 0L},
51 .ts = {.tv_sec = 315493200LL, .tv_nsec = 0L},
59 .ts = {.tv_sec = 4354858798LL, .tv_nsec = 0L},
67 .ts = {.tv_sec = 825552000LL, .tv_nsec = 0L},
75 .ts = {.tv_sec = 951782400LL, .tv_nsec = 0L},
83 .ts = {.tv_sec = 4107542400LL, .tv_nsec = 0L},
91 .ts = {.tv_sec = 1078014600LL, .tv_nsec = 0L},
107 .ts = {.tv_sec = 946684799LL, .tv_nsec = 0L},
150 testcase->ts.tv_nsec, in fat_time_fat2unix_test()
[all …]
/linux/kernel/time/
A Dtime.c89 tv.tv_nsec = 0; in SYSCALL_DEFINE1()
127 tv.tv_nsec = 0; in SYSCALL_DEFINE1()
210 if (new_ts.tv_nsec > USEC_PER_SEC || new_ts.tv_nsec < 0) in SYSCALL_DEFINE2()
254 if (new_ts.tv_nsec > USEC_PER_SEC || new_ts.tv_nsec < 0) in COMPAT_SYSCALL_DEFINE2()
513 ts.tv_nsec = rem; in ns_to_timespec64()
771 lhs.tv_nsec + rhs.tv_nsec); in timespec64_add_safe()
775 res.tv_nsec = 0; in timespec64_add_safe()
798 ts->tv_nsec = kts.tv_nsec; in get_timespec64()
809 .tv_nsec = ts->tv_nsec in put_timespec64()
827 ts64->tv_nsec = ts.tv_nsec; in __get_old_timespec32()
[all …]
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()
286 it_new.it_value.tv_nsec = 0; in alarm_setitimer()
287 it_new.it_interval.tv_sec = it_new.it_interval.tv_nsec = 0; in alarm_setitimer()
295 if ((!it_old.it_value.tv_sec && it_old.it_value.tv_nsec) || in alarm_setitimer()
296 it_old.it_value.tv_nsec >= (NSEC_PER_SEC / 2)) in alarm_setitimer()
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()
[all …]
/linux/tools/testing/selftests/mqueue/
A Dmq_perf_tests.c356 (middle.tv_nsec - start.tv_nsec); \
357 send_total.tv_nsec += nsec; \
363 (end.tv_nsec - middle.tv_nsec); \
364 recv_total.tv_nsec += nsec; \
447 res.tv_nsec > 1 ? "s" : ""); in perf_test_thread()
455 send_total.tv_nsec = 0; in perf_test_thread()
457 recv_total.tv_nsec = 0; in perf_test_thread()
477 send_total.tv_nsec = 0; in perf_test_thread()
479 recv_total.tv_nsec = 0; in perf_test_thread()
489 1000000000) + (end.tv_nsec - start.tv_nsec); in perf_test_thread()
[all …]
/linux/tools/testing/selftests/kvm/
A Ddirty_log_perf_test.c70 ts_diff.tv_nsec); in vcpu_worker()
74 ts_diff.tv_nsec); in vcpu_worker()
84 total.tv_sec, total.tv_nsec, avg.tv_sec, avg.tv_nsec); in vcpu_worker()
223 ts_diff.tv_sec, ts_diff.tv_nsec); in run_test()
230 ts_diff.tv_sec, ts_diff.tv_nsec); in run_test()
250 iteration, ts_diff.tv_sec, ts_diff.tv_nsec); in run_test()
258 iteration, ts_diff.tv_sec, ts_diff.tv_nsec); in run_test()
267 iteration, ts_diff.tv_sec, ts_diff.tv_nsec); in run_test()
276 ts_diff.tv_sec, ts_diff.tv_nsec); in run_test()
285 get_dirty_log_total.tv_nsec, avg.tv_sec, avg.tv_nsec); in run_test()
[all …]
/linux/tools/testing/radix-tree/
A Dbenchmark.c39 (finish.tv_nsec - start.tv_nsec); in benchmark_iter()
67 (finish.tv_nsec - start.tv_nsec); in benchmark_insert()
88 (finish.tv_nsec - start.tv_nsec); in benchmark_tagging()
109 (finish.tv_nsec - start.tv_nsec); in benchmark_delete()
/linux/sound/core/seq/
A Dseq_timer.h77 if ((a->tv_sec == b->tv_sec) && (a->tv_nsec >= b->tv_nsec)) in snd_seq_compare_real_time()
85 while (tm->tv_nsec >= 1000000000) { in snd_seq_sanity_real_time()
87 tm->tv_nsec -= 1000000000; in snd_seq_sanity_real_time()
97 tm->tv_nsec += inc->tv_nsec; in snd_seq_inc_real_time()
103 tm->tv_nsec += nsec; in snd_seq_inc_time_nsec()
/linux/arch/um/os-Linux/
A Dtime.c29 return ((long long) ts->tv_sec * UM_NSEC_PER_SEC) + ts->tv_nsec; in timespec_to_ns()
58 its.it_value.tv_nsec = nsecs % UM_NSEC_PER_SEC; in os_timer_set_interval()
61 its.it_interval.tv_nsec = nsecs % UM_NSEC_PER_SEC; in os_timer_set_interval()
73 .it_value.tv_nsec = nsecs % UM_NSEC_PER_SEC, in os_timer_one_shot()
76 .it_interval.tv_nsec = 0, // we cheat here in os_timer_one_shot()
117 if (its.it_value.tv_sec || its.it_value.tv_nsec) in os_idle_sleep()
/linux/drivers/input/misc/
A Dhp_sdc_rtc.c194 res->tv_nsec = (long)(tenms % 100) * 10000 * 1000; in hp_sdc_rtc_read_rt()
211 res->tv_nsec = (long)(tenms % 100) * 10000 * 1000; in hp_sdc_rtc_read_fhs()
228 res->tv_nsec = (long)(tenms % 100) * 10000 * 1000; in hp_sdc_rtc_read_mt()
245 res->tv_nsec = (long)(tenms % 100) * 10000 * 1000; in hp_sdc_rtc_read_dt()
262 res->tv_nsec = (long)(tenms % 100) * 10000 * 1000; in hp_sdc_rtc_read_ct()
291 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show()
298 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show()
305 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show()
312 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show()
319 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show()
/linux/tools/testing/selftests/timers/
A Dleap-a-day.c66 if (a.tv_nsec > b.tv_nsec) in in_order()
73 ts.tv_nsec += ns; in timespec_add()
74 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add()
75 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add()
301 its1.it_value.tv_nsec = 0; in main()
303 its1.it_interval.tv_nsec = 0; in main()
308 ts.tv_nsec = 0; in main()
341 tai.tv_nsec, in main()
356 ts.tv_nsec = NSEC_PER_SEC / 2; in main()
A Dnanosleep.c86 if (a.tv_nsec > b.tv_nsec) in in_order()
93 ts.tv_nsec += ns; in timespec_add()
94 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add()
95 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add()
120 rel.tv_nsec = 0; in nanosleep_test()
A Dnsleep-lat.c81 ts.tv_nsec += ns; in timespec_add()
82 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add()
83 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add()
92 long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; in timespec_sub()
94 ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; in timespec_sub()
105 target.tv_nsec = ns%NSEC_PER_SEC; in nanosleep_lat_test()
A Dmqueue-lat.c42 long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; in timespec_sub()
44 ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; in timespec_sub()
50 ts.tv_nsec += ns; in timespec_add()
51 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add()
52 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add()
A Dalarmtimer-suspend.c89 long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; in timespec_sub()
91 ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; in timespec_sub()
109 ts.tv_nsec, delta_ns); in sigalarm()
152 start_time.tv_sec, start_time.tv_nsec); in main()
157 its1.it_interval.tv_nsec = 0; in main()
A Dinconsistency-check.c87 if (a.tv_nsec > b.tv_nsec) in in_order()
130 list[i].tv_nsec); in consistency_test()
135 delta += list[inconsistent].tv_nsec; in consistency_test()
137 delta -= list[inconsistent+1].tv_nsec; in consistency_test()
/linux/tools/testing/selftests/vDSO/
A Dvdso_test_correctness.c41 long long tv_nsec; member
221 return a->tv_nsec <= b->tv_nsec; in ts_leq()
230 return a->tv_nsec <= b->tv_nsec; in ts64_leq()
289 (unsigned long long)start.tv_sec, start.tv_nsec, in test_one_clock_gettime()
290 (unsigned long long)vdso.tv_sec, vdso.tv_nsec, in test_one_clock_gettime()
291 (unsigned long long)end.tv_sec, end.tv_nsec); in test_one_clock_gettime()
353 (unsigned long long)start.tv_sec, start.tv_nsec, in test_one_clock_gettime64()
354 (unsigned long long)vdso.tv_sec, vdso.tv_nsec, in test_one_clock_gettime64()
355 (unsigned long long)end.tv_sec, end.tv_nsec); in test_one_clock_gettime64()
/linux/tools/testing/selftests/timens/
A Dfutex.c30 timeout.tv_nsec += NSEC_PER_SEC / 10; // 100ms in run_test()
31 if (timeout.tv_nsec > NSEC_PER_SEC) { in run_test()
33 timeout.tv_nsec -= NSEC_PER_SEC; in run_test()
51 (end.tv_sec == timeout.tv_sec && end.tv_nsec < timeout.tv_nsec)) { in run_test()
/linux/fs/coda/
A Dcoda_linux.c73 .tv_nsec = ts.tv_nsec, in coda_to_timespec64()
83 .tv_nsec = ts64.tv_nsec, in timespec64_to_coda()
152 vattr->va_atime.tv_nsec = (long) -1; in coda_iattr_to_vattr()
154 vattr->va_mtime.tv_nsec = (long) -1; in coda_iattr_to_vattr()
156 vattr->va_ctime.tv_nsec = (long) -1; in coda_iattr_to_vattr()
/linux/fs/udf/
A Dudftime.c63 dest->tv_nsec = 1000 * (src.centiseconds * 10000 + in udf_disk_stamp_to_time()
69 dest->tv_nsec %= NSEC_PER_SEC; in udf_disk_stamp_to_time()
91 dest->centiseconds = ts.tv_nsec / 10000000; in udf_time_to_disk_stamp()
92 dest->hundredsOfMicroseconds = (ts.tv_nsec / 1000 - in udf_time_to_disk_stamp()
94 dest->microseconds = (ts.tv_nsec / 1000 - dest->centiseconds * 10000 - in udf_time_to_disk_stamp()
/linux/arch/nds32/kernel/vdso/
A Dgettimeofday.c75 ts->tv_nsec = vdata->xtime_coarse_nsec; in do_realtime_coarse()
96 ts->tv_nsec = ns; in do_monotonic_coarse()
129 ts->tv_nsec = ns; in do_realtime()
153 ts->tv_nsec = ns; in do_monotonic()
217 res->tv_nsec = vdata->hrtimer_res; in __vdso_clock_getres()
222 res->tv_nsec = CLOCK_COARSE_RES; in __vdso_clock_getres()
261 tv->tv_usec = ts.tv_nsec / 1000; in __vdso_gettimeofday()
/linux/lib/vdso/
A Dgettimeofday.c92 ts->tv_nsec = ns; in do_hres_timens()
159 ts->tv_nsec = ns; in do_hres()
190 ts->tv_nsec = nsec; in do_coarse_timens()
221 ts->tv_nsec = vdso_ts->nsec; in do_coarse()
286 res->tv_nsec = ts.tv_nsec; in __cvdso_clock_gettime32_data()
310 tv->tv_usec = (u32)ts.tv_nsec / NSEC_PER_USEC; in __cvdso_gettimeofday_data()
392 res->tv_nsec = ns; in __cvdso_clock_getres_common()
429 res->tv_nsec = ts.tv_nsec; in __cvdso_clock_getres_time32_data()

Completed in 30 milliseconds

12345678910>>...18