Home
last modified time | relevance | path

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

12345678910>>...40

/openbmc/linux/include/linux/
H A 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 …]
/openbmc/linux/tools/testing/selftests/timens/
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
/openbmc/linux/fs/ext4/
H 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},
161 .expected = {.tv_sec = 0x1ffffffffLL, .tv_nsec = 0L},
169 .expected = {.tv_sec = 0x200000000LL, .tv_nsec = 0L},
[all …]
/openbmc/linux/tools/testing/selftests/timers/
H A 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 …]
H A 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()
/openbmc/linux/tools/testing/selftests/vDSO/
H A Dvdso_test_correctness.c41 long long tv_sec; member
225 if (a->tv_sec != b->tv_sec) in ts_leq()
226 return a->tv_sec < b->tv_sec; in ts_leq()
234 if (a->tv_sec != b->tv_sec) in ts64_leq()
235 return a->tv_sec < b->tv_sec; in ts64_leq()
242 if (a->tv_sec != b->tv_sec) in tv_leq()
243 return a->tv_sec < b->tv_sec; in tv_leq()
296 (unsigned long long)start.tv_sec, start.tv_nsec, in test_one_clock_gettime()
297 (unsigned long long)vdso.tv_sec, vdso.tv_nsec, in test_one_clock_gettime()
298 (unsigned long long)end.tv_sec, end.tv_nsec); in test_one_clock_gettime()
[all …]
/openbmc/linux/kernel/time/
H A 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 …]
H A 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 …]
/openbmc/linux/fs/fat/
H 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},
99 .ts = {.tv_sec = 1078097400LL, .tv_nsec = 0L},
107 .ts = {.tv_sec = 946684799LL, .tv_nsec = 0L},
[all …]
/openbmc/qemu/bsd-user/freebsd/
H A Dos-stat.c42 __put_user(host_st->st_atim.tv_sec, &target_st->st_atim.tv_sec); in h2t_freebsd11_stat()
44 __put_user(host_st->st_mtim.tv_sec, &target_st->st_mtim.tv_sec); in h2t_freebsd11_stat()
46 __put_user(host_st->st_ctim.tv_sec, &target_st->st_ctim.tv_sec); in h2t_freebsd11_stat()
54 __put_user(host_st->st_birthtim.tv_sec, &target_st->st_birthtim.tv_sec); in h2t_freebsd11_stat()
77 __put_user(host_st->st_atim.tv_sec, &target_st->st_atim.tv_sec); in h2t_freebsd_stat()
82 __put_user(host_st->st_mtim.tv_sec, &target_st->st_mtim.tv_sec); in h2t_freebsd_stat()
87 __put_user(host_st->st_ctim.tv_sec, &target_st->st_ctim.tv_sec); in h2t_freebsd_stat()
92 __put_user(host_st->st_birthtim.tv_sec, &target_st->st_birthtim.tv_sec); in h2t_freebsd_stat()
121 __put_user(host_st->st_atim.tv_sec, &target_st->st_atim.tv_sec); in h2t_freebsd11_nstat()
123 __put_user(host_st->st_mtim.tv_sec, &target_st->st_mtim.tv_sec); in h2t_freebsd11_nstat()
[all …]
/openbmc/openbmc-tools/pwmtachtool/src/
H A DEINTR_wrappers.c43 …if ((timeout->tv_sec == 0) && (timeout->tv_nsec == 0)) // If both value are zero … in sigwrap_InitTimeout()
55 …pDst->EndTime.tv_sec = Now.tv_sec + pDst->Timeout.tv_sec; // Check necessary in 2038… in sigwrap_InitTimeout()
60 pDst->EndTime.tv_sec += (pDst->EndTime.tv_nsec / OneSecondasNS); in sigwrap_InitTimeout()
75 …if (Now.tv_sec > pTo->EndTime.tv_sec) // Can become a problem already in 2038 due to signed intege… in sigwrap_CheckTimeout()
79 pTo->Timeout.tv_sec = pTo->EndTime.tv_sec - Now.tv_sec; in sigwrap_CheckTimeout()
81 if (pTo->Timeout.tv_sec == 0) in sigwrap_CheckTimeout()
89 pTo->Timeout.tv_sec--; in sigwrap_CheckTimeout()
117 Timeout.tv_sec = timeout / 1000; in sigwrap_epoll_wait()
139 timeout = To.Timeout.tv_sec * 1000 + To.Timeout.tv_nsec / 1000000; in sigwrap_epoll_wait()
152 Timeout.tv_sec = timeout / 1000; in sigwrap_epoll_pwait()
[all …]
/openbmc/linux/fs/coda/
H A 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()
127 if (attr->va_mtime.tv_sec != -1) in coda_vattr_to_iattr()
129 if (attr->va_ctime.tv_sec != -1) in coda_vattr_to_iattr()
152 vattr->va_atime.tv_sec = (int64_t) -1; in coda_iattr_to_vattr()
154 vattr->va_mtime.tv_sec = (int64_t) -1; in coda_iattr_to_vattr()
156 vattr->va_ctime.tv_sec = (int64_t) -1; in coda_iattr_to_vattr()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/utouch/utouch-evemu/
H A D0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch27 +#define input_event_sec time.tv_sec
42 - ev->time.tv_sec, (unsigned)ev->time.tv_usec,
51 - ev->time.tv_sec = sec;
62 - if (!evtime->tv_sec)
64 - usec = 1000000L * (ev->time.tv_sec - evtime->tv_sec);
66 + if (!evtime->tv_sec) {
67 + evtime->tv_sec = ev->input_event_sec;
70 + usec = (ev->input_event_sec - evtime->tv_sec) * 1000000L;
75 + evtime->tv_sec = ev->input_event_sec;
/openbmc/openbmc/poky/meta/recipes-graphics/startup-notification/startup-notification-0.12/
H A Dtime_t.patch34 - long *tv_sec,
36 + time_t *tv_sec,
39 if (tv_sec)
40 *tv_sec = sequence->initiation_time.tv_sec;
45 - long *tv_sec,
47 + time_t *tv_sec,
51 if (tv_sec)
60 - long *tv_sec,
62 + time_t *tv_sec,
65 - long *tv_sec,
[all …]
/openbmc/linux/tools/testing/selftests/kvm/
H A Ddirty_log_perf_test.c105 vcpu_idx, current_iteration, ts_diff.tv_sec, in vcpu_worker()
109 vcpu_idx, current_iteration, ts_diff.tv_sec, in vcpu_worker()
125 total.tv_sec, total.tv_nsec, avg.tv_sec, avg.tv_nsec); in vcpu_worker()
205 ts_diff.tv_sec, ts_diff.tv_nsec); in run_test()
212 ts_diff.tv_sec, ts_diff.tv_nsec); in run_test()
235 iteration, ts_diff.tv_sec, ts_diff.tv_nsec); in run_test()
243 iteration, ts_diff.tv_sec, ts_diff.tv_nsec); in run_test()
253 iteration, ts_diff.tv_sec, ts_diff.tv_nsec); in run_test()
270 ts_diff.tv_sec, ts_diff.tv_nsec); in run_test()
282 p->iterations, get_dirty_log_total.tv_sec, in run_test()
[all …]
/openbmc/linux/tools/testing/selftests/mqueue/
H A Dmq_perf_tests.c358 nsec = ((middle.tv_sec - start.tv_sec) * 1000000000) + \
362 send_total.tv_sec++; \
365 nsec = ((end.tv_sec - middle.tv_sec) * 1000000000) + \
369 recv_total.tv_sec++; \
457 send_total.tv_sec = 0; in perf_test_thread()
459 recv_total.tv_sec = 0; in perf_test_thread()
464 send_total.tv_sec, send_total.tv_nsec); in perf_test_thread()
465 nsec = ((unsigned long long)send_total.tv_sec * 1000000000 + in perf_test_thread()
469 recv_total.tv_sec, recv_total.tv_nsec); in perf_test_thread()
470 nsec = ((unsigned long long)recv_total.tv_sec * 1000000000 + in perf_test_thread()
[all …]
/openbmc/linux/sound/core/seq/
H A Dseq_timer.h75 if (a->tv_sec > b->tv_sec) in snd_seq_compare_real_time()
77 if ((a->tv_sec == b->tv_sec) && (a->tv_nsec >= b->tv_nsec)) in snd_seq_compare_real_time()
88 tm->tv_sec++; in snd_seq_sanity_real_time()
96 tm->tv_sec += inc->tv_sec; in snd_seq_inc_real_time()
/openbmc/openbmc-tools/adcapp/src/
H A DEINTR_wrappers.c43 …if ((timeout->tv_sec == 0) && (timeout->tv_nsec == 0)) // If both value are zero … in sigwrap_InitTimeout()
55 …pDst->EndTime.tv_sec = Now.tv_sec + pDst->Timeout.tv_sec; // Check necessary in 2038… in sigwrap_InitTimeout()
60 pDst->EndTime.tv_sec += (pDst->EndTime.tv_nsec / OneSecondasNS); in sigwrap_InitTimeout()
75 …if (Now.tv_sec > pTo->EndTime.tv_sec) // Can become a problem already in 2038 due to signed intege… in sigwrap_CheckTimeout()
79 pTo->Timeout.tv_sec = pTo->EndTime.tv_sec - Now.tv_sec; in sigwrap_CheckTimeout()
81 if (pTo->Timeout.tv_sec == 0) in sigwrap_CheckTimeout()
89 pTo->Timeout.tv_sec--; in sigwrap_CheckTimeout()
144 Timeout.tv_sec = timeout / 1000; in sigwrap_epoll_wait()
166 timeout = To.Timeout.tv_sec * 1000 + To.Timeout.tv_nsec / 1000000; in sigwrap_epoll_wait()
179 Timeout.tv_sec = timeout / 1000; in sigwrap_epoll_pwait()
[all …]
/openbmc/linux/tools/testing/radix-tree/
H A 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()
/openbmc/linux/fs/
H A 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()
/openbmc/linux/arch/um/os-Linux/
H A 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()

12345678910>>...40