Home
last modified time | relevance | path

Searched refs:tv_sec (Results 1 – 25 of 576) sorted by relevance

12345678910>>...24

/linux-6.12.1/include/linux/
Dtime64.h14 time64_t tv_sec; /* seconds */ member
49 return (a->tv_sec == b->tv_sec) && (a->tv_nsec == b->tv_nsec); in timespec64_equal()
59 if (lhs->tv_sec < rhs->tv_sec) in timespec64_compare()
61 if (lhs->tv_sec > rhs->tv_sec) in timespec64_compare()
72 set_normalized_timespec64(&ts_delta, lhs.tv_sec + rhs.tv_sec, in timespec64_add()
84 set_normalized_timespec64(&ts_delta, lhs.tv_sec - rhs.tv_sec, in timespec64_sub()
95 if (ts->tv_sec < 0) in timespec64_valid()
108 if ((unsigned long long)ts->tv_sec >= KTIME_SEC_MAX) in timespec64_valid_strict()
118 if ((unsigned long long)ts->tv_sec >= TIME_SETTOD_SEC_MAX) in timespec64_valid_settod()
133 if (ts->tv_sec >= KTIME_SEC_MAX) in timespec64_to_ns()
[all …]
/linux-6.12.1/tools/testing/selftests/timens/
Dexec.c28 if (sscanf(argv[1], "%ld", &now.tv_sec) != 1) in main()
33 if (labs(tst.tv_sec - now.tv_sec) > 5) in main()
34 return pr_fail("%ld %ld\n", now.tv_sec, tst.tv_sec); in main()
53 if (labs(tst.tv_sec - now.tv_sec) > 5) in main()
55 now.tv_sec, tst.tv_sec); in main()
73 if (labs(tst.tv_sec - now.tv_sec - OFFSET) > 5) in main()
75 now.tv_sec + OFFSET, tst.tv_sec); in main()
79 snprintf(now_str, sizeof(now_str), "%ld", now.tv_sec + OFFSET); in main()
Dvfork_exec.c35 if (labs(tst.tv_sec - now->tv_sec) > 5) { in tcheck()
37 args->tst_name, tst.tv_sec, now->tv_sec); in tcheck()
67 if (labs(tst.tv_sec - now->tv_sec) > 5) in check()
69 tst_name, tst.tv_sec, now->tv_sec); in check()
87 now.tv_sec = strtoul(argv[1], &endptr, 0); in main()
119 snprintf(now_str, sizeof(now_str), "%ld", now.tv_sec + OFFSET); in main()
Dtimens.c111 child_ts_new.tv_sec = parent_ts_old.tv_sec + offset; in test_gettime()
119 if (difftime(cur_ts.tv_sec, child_ts_new.tv_sec) < precision) { in test_gettime()
122 clocks[clock_index].name, entry, parent_ts_old.tv_sec, in test_gettime()
123 child_ts_new.tv_sec, cur_ts.tv_sec); in test_gettime()
133 if (difftime(cur_ts.tv_sec, parent_ts_old.tv_sec) > DAY_IN_SEC) { in test_gettime()
136 clocks[clock_index].name, entry, parent_ts_old.tv_sec, in test_gettime()
137 child_ts_new.tv_sec, cur_ts.tv_sec); in test_gettime()
Dtimer.c32 new_value.it_value.tv_sec = 3600; in run_test()
34 new_value.it_interval.tv_sec = 1; in run_test()
38 new_value.it_value.tv_sec += now.tv_sec; in run_test()
58 elapsed = new_value.it_value.tv_sec; in run_test()
101 mtime_now.tv_sec += 70 * 24 * 3600; in main()
102 btime_now.tv_sec += 9 * 24 * 3600; in main()
Dtimerfd.c40 new_value.it_value.tv_sec = 3600; in run_test()
42 new_value.it_interval.tv_sec = 1; in run_test()
46 new_value.it_value.tv_sec += now.tv_sec; in run_test()
63 elapsed = new_value.it_value.tv_sec; in run_test()
108 mtime_now.tv_sec += 70 * 24 * 3600; in main()
109 btime_now.tv_sec += 9 * 24 * 3600; in main()
/linux-6.12.1/fs/ext4/
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},
161 .expected = {.tv_sec = 0x1ffffffffLL, .tv_nsec = 0L},
169 .expected = {.tv_sec = 0x200000000LL, .tv_nsec = 0L},
[all …]
/linux-6.12.1/tools/testing/selftests/timers/
Dleap-a-day.c62 if (a.tv_sec < b.tv_sec) in in_order()
64 if (a.tv_sec > b.tv_sec) in in_order()
76 ts.tv_sec++; in timespec_add()
138 if (tx.time.tv_sec < next_leap) { in sigalarm()
142 tx.time.tv_sec, in sigalarm()
151 tx.time.tv_sec, in sigalarm()
246 next_leap = ts.tv_sec; in main()
252 tv.tv_sec = next_leap - 10; in main()
255 printf("Setting time to %s", ctime(&tv.tv_sec)); in main()
300 its1.it_value.tv_sec = next_leap; in main()
[all …]
Dinconsistency-check.c83 if ((unsigned long)a.tv_sec < (unsigned long)b.tv_sec) in in_order()
85 if ((unsigned long)a.tv_sec > (unsigned long)b.tv_sec) in in_order()
103 now = then = list[0].tv_sec; in consistency_test()
129 ksft_print_msg("%lu:%lu\n", list[i].tv_sec, in consistency_test()
134 delta = list[inconsistent].tv_sec * NSEC_PER_SEC; in consistency_test()
136 delta -= list[inconsistent+1].tv_sec * NSEC_PER_SEC; in consistency_test()
145 now = list[0].tv_sec; in consistency_test()
Dposix_timers.c89 diff += (end.tv_sec - start.tv_sec) * USECS_PER_SEC; in check_diff()
103 .it_value.tv_sec = DELAY, in check_itimer()
138 .it_value.tv_sec = DELAY, in check_timer_create()
178 .it_value.tv_sec = 0, in ctd_thread_func()
180 .it_interval.tv_sec = 0, in ctd_thread_func()
299 its.it_value.tv_sec = 0; in check_sig_ign()
301 its.it_interval.tv_sec = 0; in check_sig_ign()
372 its.it_value.tv_sec = 0; in check_rearm()
374 its.it_interval.tv_sec = 0; in check_rearm()
382 its.it_value.tv_sec = 10; in check_rearm()
[all …]
Dfreq-step.c45 return ts1->tv_sec - ts2->tv_sec + (ts1->tv_nsec - ts2->tv_nsec) / 1e9; in diff_timespec()
59 ts1.tv_sec -= mono_raw_base; in get_sample()
60 ts2.tv_sec -= mono_base; in get_sample()
61 ts3.tv_sec -= mono_raw_base; in get_sample()
72 sample->time = ts1.tv_sec + ts1.tv_nsec / 1e9; in get_sample()
85 txc.time.tv_sec = 0; in reset_ntp_error()
213 mono_raw_base = ts.tv_sec; in init_test()
220 mono_base = ts.tv_sec; in init_test()
233 srand(ts.tv_sec ^ ts.tv_nsec); in init_test()
/linux-6.12.1/tools/testing/selftests/vDSO/
Dvdso_test_correctness.c42 long long tv_sec; member
226 if (a->tv_sec != b->tv_sec) in ts_leq()
227 return a->tv_sec < b->tv_sec; in ts_leq()
235 if (a->tv_sec != b->tv_sec) in ts64_leq()
236 return a->tv_sec < b->tv_sec; in ts64_leq()
243 if (a->tv_sec != b->tv_sec) in tv_leq()
244 return a->tv_sec < b->tv_sec; in tv_leq()
297 (unsigned long long)start.tv_sec, start.tv_nsec, in test_one_clock_gettime()
298 (unsigned long long)vdso.tv_sec, vdso.tv_nsec, in test_one_clock_gettime()
299 (unsigned long long)end.tv_sec, end.tv_nsec); in test_one_clock_gettime()
[all …]
/linux-6.12.1/kernel/time/
Dtime.c86 if (get_user(tv.tv_sec, tptr)) in SYSCALL_DEFINE1()
124 if (get_user(tv.tv_sec, tptr)) in SYSCALL_DEFINE1()
147 if (put_user(ts.tv_sec, &tv->tv_sec) || in SYSCALL_DEFINE2()
206 if (get_user(new_ts.tv_sec, &tv->tv_sec) || in SYSCALL_DEFINE2()
231 if (put_user(ts.tv_sec, &tv->tv_sec) || in COMPAT_SYSCALL_DEFINE2()
250 if (get_user(new_ts.tv_sec, &tv->tv_sec) || in COMPAT_SYSCALL_DEFINE2()
303 txc->time.tv_sec = tx32.time.tv_sec; in get_old_timex32()
332 tx32.time.tv_sec = txc->time.tv_sec; in put_old_timex32()
475 tv.tv_sec = ts.tv_sec; in ns_to_kernel_old_timeval()
512 ts->tv_sec = sec; in set_normalized_timespec64()
[all …]
Ditimer.c105 v.it_interval.tv_sec = i->it_interval.tv_sec; in put_itimerval()
107 v.it_value.tv_sec = i->it_value.tv_sec; in put_itimerval()
134 v32.it_interval.tv_sec = i->it_interval.tv_sec; in put_old_itimerval32()
136 v32.it_value.tv_sec = i->it_value.tv_sec; in put_old_itimerval32()
204 (((t)->tv_sec >= 0) && (((unsigned long) (t)->tv_usec) < USEC_PER_SEC))
285 it_new.it_value.tv_sec = seconds; 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()
297 it_old.it_value.tv_sec++; in alarm_setitimer()
299 return it_old.it_value.tv_sec; in alarm_setitimer()
[all …]
/linux-6.12.1/fs/fat/
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},
99 .ts = {.tv_sec = 1078097400LL, .tv_nsec = 0L},
107 .ts = {.tv_sec = 946684799LL, .tv_nsec = 0L},
[all …]
/linux-6.12.1/fs/coda/
Dcoda_linux.c72 .tv_sec = ts.tv_sec, in coda_to_timespec64()
82 .tv_sec = ts64.tv_sec, in timespec64_to_coda()
125 if (attr->va_atime.tv_sec != -1) in coda_vattr_to_iattr()
128 if (attr->va_mtime.tv_sec != -1) in coda_vattr_to_iattr()
131 if (attr->va_ctime.tv_sec != -1) in coda_vattr_to_iattr()
154 vattr->va_atime.tv_sec = (int64_t) -1; in coda_iattr_to_vattr()
156 vattr->va_mtime.tv_sec = (int64_t) -1; in coda_iattr_to_vattr()
158 vattr->va_ctime.tv_sec = (int64_t) -1; in coda_iattr_to_vattr()
/linux-6.12.1/tools/testing/selftests/kvm/
Ddirty_log_perf_test.c103 vcpu_idx, current_iteration, ts_diff.tv_sec, in vcpu_worker()
107 vcpu_idx, current_iteration, ts_diff.tv_sec, in vcpu_worker()
123 total.tv_sec, total.tv_nsec, avg.tv_sec, avg.tv_nsec); in vcpu_worker()
200 ts_diff.tv_sec, ts_diff.tv_nsec); in run_test()
207 ts_diff.tv_sec, ts_diff.tv_nsec); in run_test()
230 iteration, ts_diff.tv_sec, ts_diff.tv_nsec); in run_test()
238 iteration, ts_diff.tv_sec, ts_diff.tv_nsec); in run_test()
248 iteration, ts_diff.tv_sec, ts_diff.tv_nsec); in run_test()
265 ts_diff.tv_sec, ts_diff.tv_nsec); in run_test()
277 p->iterations, get_dirty_log_total.tv_sec, in run_test()
[all …]
/linux-6.12.1/tools/testing/selftests/mqueue/
Dmq_perf_tests.c359 nsec = ((middle.tv_sec - start.tv_sec) * 1000000000) + \
363 send_total.tv_sec++; \
366 nsec = ((end.tv_sec - middle.tv_sec) * 1000000000) + \
370 recv_total.tv_sec++; \
459 send_total.tv_sec = 0; in perf_test_thread()
461 recv_total.tv_sec = 0; in perf_test_thread()
466 send_total.tv_sec, send_total.tv_nsec); in perf_test_thread()
467 nsec = ((unsigned long long)send_total.tv_sec * 1000000000 + in perf_test_thread()
471 recv_total.tv_sec, recv_total.tv_nsec); in perf_test_thread()
472 nsec = ((unsigned long long)recv_total.tv_sec * 1000000000 + in perf_test_thread()
[all …]
/linux-6.12.1/sound/core/seq/
Dseq_timer.h76 if (a->tv_sec > b->tv_sec) in snd_seq_compare_real_time()
78 if ((a->tv_sec == b->tv_sec) && (a->tv_nsec >= b->tv_nsec)) in snd_seq_compare_real_time()
89 tm->tv_sec++; in snd_seq_sanity_real_time()
97 tm->tv_sec += inc->tv_sec; in snd_seq_inc_real_time()
/linux-6.12.1/tools/testing/radix-tree/
Dbenchmark.c38 nsec = (finish.tv_sec - start.tv_sec) * NSEC_PER_SEC + in benchmark_iter()
66 nsec = (finish.tv_sec - start.tv_sec) * NSEC_PER_SEC + in benchmark_insert()
87 nsec = (finish.tv_sec - start.tv_sec) * NSEC_PER_SEC + in benchmark_tagging()
108 nsec = (finish.tv_sec - start.tv_sec) * NSEC_PER_SEC + in benchmark_delete()
/linux-6.12.1/fs/
Dutimes.c193 tstimes[0].tv_sec = times[0].tv_sec; in do_futimesat()
195 tstimes[1].tv_sec = times[1].tv_sec; in do_futimesat()
220 if (get_user(tv[0].tv_sec, &times->actime) || in SYSCALL_DEFINE2()
221 get_user(tv[1].tv_sec, &times->modtime)) in SYSCALL_DEFINE2()
242 if (get_user(tv[0].tv_sec, &t->actime) || in SYSCALL_DEFINE2()
243 get_user(tv[1].tv_sec, &t->modtime)) in SYSCALL_DEFINE2()
274 if (get_user(tv[0].tv_sec, &t[0].tv_sec) || in do_compat_futimesat()
276 get_user(tv[1].tv_sec, &t[1].tv_sec) || in do_compat_futimesat()
/linux-6.12.1/arch/um/os-Linux/
Dtime.c23 return ((long long) ts->tv_sec * UM_NSEC_PER_SEC) + ts->tv_nsec; in timespec_to_ns()
51 its.it_value.tv_sec = nsecs / UM_NSEC_PER_SEC; in os_timer_set_interval()
54 its.it_interval.tv_sec = nsecs / UM_NSEC_PER_SEC; in os_timer_set_interval()
66 .it_value.tv_sec = nsecs / UM_NSEC_PER_SEC, in os_timer_one_shot()
69 .it_interval.tv_sec = 0, in os_timer_one_shot()
111 if (its.it_value.tv_sec || its.it_value.tv_nsec) in os_idle_sleep()
/linux-6.12.1/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()
184 (long)stamp->tv_sec, in printpacket()
192 (long)stamp->tv_sec, in printpacket()
201 (long)stamp->tv_sec, in printpacket()
207 (long)stamp->tv_sec, in printpacket()
264 (long)tv.tv_sec, in printpacket()
272 (long)ts.tv_sec, in printpacket()
498 next.tv_sec = (next.tv_sec + 1) / 5 * 5; in main()
508 delta_us = (long)(next.tv_sec - now.tv_sec) * 1000000 + in main()
[all …]
/linux-6.12.1/drivers/pps/generators/
Dpps_gen_parport.c81 if (expire_time.tv_sec != ts1.tv_sec || ts1.tv_nsec > lim) { in hrtimer_event()
84 (s64)ts1.tv_sec, ts1.tv_nsec); in hrtimer_event()
91 } while (expire_time.tv_sec == ts2.tv_sec && ts2.tv_nsec < lim); in hrtimer_event()
101 } while (expire_time.tv_sec == ts2.tv_sec && ts2.tv_nsec < lim); in hrtimer_event()
131 ktime_set(expire_time.tv_sec + 1, in hrtimer_event()
171 return ktime_set(ts.tv_sec + in next_intr_time()
/linux-6.12.1/drivers/input/misc/
Dhp_sdc_rtc.c195 res->tv_sec = (tenms / 100) + (time64_t)days * 86400; in hp_sdc_rtc_read_rt()
212 res->tv_sec = (time64_t)(tenms / 100); in hp_sdc_rtc_read_fhs()
229 res->tv_sec = (time64_t)(tenms / 100); in hp_sdc_rtc_read_mt()
246 res->tv_sec = (time64_t)(tenms / 100); in hp_sdc_rtc_read_dt()
263 res->tv_sec = (time64_t)(tenms / 100); 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()

12345678910>>...24