Home
last modified time | relevance | path

Searched refs:tv_sec (Results 1 - 25 of 1302) sorted by relevance

12345678910>>...53

/kernel/linux/linux-6.6/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 in timespec64_sub()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/timens/
H A Dexec.c28 if (sscanf(argv[1], "%ld", &now.tv_sec) != 1) in main()
33 if (abs(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 (abs(tst.tv_sec - now.tv_sec) > 5) in main()
55 now.tv_sec, tst.tv_sec); in main()
73 if (abs(tst.tv_sec in main()
[all...]
H A Dtimens.c113 child_ts_new.tv_sec = parent_ts_old.tv_sec + offset; in test_gettime()
121 if (difftime(cur_ts.tv_sec, child_ts_new.tv_sec) < precision) { in test_gettime()
124 clocks[clock_index].name, entry, parent_ts_old.tv_sec, in test_gettime()
125 child_ts_new.tv_sec, cur_ts.tv_sec); in test_gettime()
135 if (difftime(cur_ts.tv_sec, parent_ts_old.tv_sec) > DAY_IN_SEC) { in test_gettime()
138 clocks[clock_index].name, entry, parent_ts_old.tv_sec, in test_gettime()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/timens/
H A Dexec.c28 if (sscanf(argv[1], "%ld", &now.tv_sec) != 1) in main()
33 if (abs(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 (abs(tst.tv_sec - now.tv_sec) > 5) in main()
55 now.tv_sec, tst.tv_sec); in main()
73 if (abs(tst.tv_sec in main()
[all...]
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()
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dtime64.h14 time64_t tv_sec; /* seconds */ member
44 return (a->tv_sec == b->tv_sec) && (a->tv_nsec == b->tv_nsec); in timespec64_equal()
54 if (lhs->tv_sec < rhs->tv_sec) in timespec64_compare()
56 if (lhs->tv_sec > rhs->tv_sec) in timespec64_compare()
67 set_normalized_timespec64(&ts_delta, lhs.tv_sec + rhs.tv_sec, in timespec64_add()
79 set_normalized_timespec64(&ts_delta, lhs.tv_sec in timespec64_sub()
[all...]
/kernel/linux/linux-5.10/fs/ext4/
H A Dinode-test.c110 .expected = {.tv_sec = -0x80000000LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding()
118 .expected = {.tv_sec = -1LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding()
134 .expected = {.tv_sec = 0x7fffffffLL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding()
142 .expected = {.tv_sec = 0x80000000LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding()
150 .expected = {.tv_sec = 0xffffffffLL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding()
158 .expected = {.tv_sec = 0x100000000LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding()
166 .expected = {.tv_sec = 0x17fffffffLL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding()
174 .expected = {.tv_sec = 0x180000000LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding()
182 .expected = {.tv_sec = 0x1ffffffffLL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding()
190 .expected = {.tv_sec in inode_test_xtimestamp_decoding()
[all...]
/kernel/liteos_a/testsuites/unittest/libc/time/clock/full/
H A Dclock_test_001.cpp53 ICUNIT_ASSERT_EQUAL(res.tv_sec, CLOCK_RES_SEC, res.tv_sec); in ClockTest()
58 printf("The current real time: sec is %lld, nsec is %ld\n", oldtp.tv_sec, oldtp.tv_nsec); in ClockTest()
64 tp.tv_sec = oldtp.tv_sec + 2; // 2, use for testing clock setting in ClockTest()
69 printf("Setting time: sec is %lld, nsec is %ld\n", tp.tv_sec, tp.tv_nsec); in ClockTest()
76 printf("Obtaining the current time after setting: sec = %lld, nsec = %ld\n", tp.tv_sec, tp.tv_nsec); in ClockTest()
77 passflag = (tp.tv_sec >= 2 + oldtp.tv_sec) && (tp.tv_sec < in ClockTest()
[all...]
H A Dclock_test_006.cpp53 ICUNIT_ASSERT_EQUAL(res.tv_sec, CLOCK_COARSE_RES_SEC, res.tv_sec); in ClockTest()
59 printf("The current coarse real time: sec is %lld, nsec is %ld\n", oldtp.tv_sec, oldtp.tv_nsec); in ClockTest()
61 tp.tv_sec = 5 * oldtp.tv_sec; // 5, times the number of seconds. in ClockTest()
74 printf("The current coarse real time again: sec is %lld, nsec is %ld\n", tp.tv_sec, tp.tv_nsec); in ClockTest()
75 passflag = (tp.tv_sec >= oldtp.tv_sec) && (tp.tv_sec <= oldtp.tv_sec in ClockTest()
[all...]
H A Dclock_test_007.cpp52 ICUNIT_ASSERT_EQUAL(res.tv_sec, CLOCK_COARSE_RES_SEC, res.tv_sec); in ClockTest()
58 printf("The current monotonic coarse time: sec is %lld, nsec is %ld\n", oldtp.tv_sec, oldtp.tv_nsec); in ClockTest()
60 tp.tv_sec = 5 * res.tv_sec; // 5, times the number of seconds. in ClockTest()
72 passflag = (tp.tv_sec >= oldtp.tv_sec) && (tp.tv_sec <= oldtp.tv_sec + 1); in ClockTest()
75 printf("The current monotonic coarse time again: sec is %lld, nsec is %ld\n", tp.tv_sec, t in ClockTest()
[all...]
H A Dclock_test_008.cpp53 ICUNIT_ASSERT_EQUAL(res.tv_sec, CLOCK_RES_SEC, res.tv_sec); in ClockTest()
59 printf("The current monotonic time: sec is %lld, nsec is %ld\n", oldtp.tv_sec, oldtp.tv_nsec); in ClockTest()
61 tp.tv_sec = 5 * oldtp.tv_sec; // 5, times the number of seconds. in ClockTest()
73 passflag = (tp.tv_sec >= oldtp.tv_sec) && (tp.tv_sec <= oldtp.tv_sec + 1); in ClockTest()
76 printf("The current monotonic time: sec is %lld, nsec is %ld\n", tp.tv_sec, t in ClockTest()
[all...]
H A Dclock_test_009.cpp53 ICUNIT_ASSERT_EQUAL(res.tv_sec, CLOCK_RES_SEC, res.tv_sec); in ClockTest()
59 printf("The current monotonic raw time: sec is %lld, nsec is %ld\n", oldtp.tv_sec, oldtp.tv_nsec); in ClockTest()
61 tp.tv_sec = 5 * res.tv_sec; // 5, times the number of seconds. in ClockTest()
73 passflag = (tp.tv_sec >= oldtp.tv_sec) && (tp.tv_sec <= oldtp.tv_sec + 1); in ClockTest()
76 printf("The current monotonic raw time again: sec is %lld, nsec is %ld\n", tp.tv_sec, t in ClockTest()
[all...]
/kernel/liteos_a/testsuites/unittest/libc/time/clock/smoke/
H A Dclock_test_smoke.cpp43 ICUNIT_ASSERT_EQUAL(res.tv_sec, CLOCK_RES_SEC, res.tv_sec); in ClockSmokeTest()
48 printf("the clock current time: %lld second, %ld nanosecond\n", oldtp.tv_sec, oldtp.tv_nsec); in ClockSmokeTest()
52 setts.tv_sec = oldtp.tv_sec + 1; in ClockSmokeTest()
54 printf("the clock setting time: %lld second, %ld nanosecond\n", setts.tv_sec, setts.tv_nsec); in ClockSmokeTest()
58 printf("obtaining the current time after setting: %lld second, %ld nanosecond\n", ts.tv_sec, ts.tv_nsec); in ClockSmokeTest()
59 passflag = (ts.tv_sec >= setts.tv_sec) && (ts.tv_sec < in ClockSmokeTest()
[all...]
/kernel/liteos_m/testsuites/unittest/xts/time/
H A Dclock_time_test.c70 time_t sec = time1.tv_sec;
71 time1.tv_sec -= 1; /* 1, common data for test, no special meaning */
78 ICUNIT_ASSERT_EQUAL(time1.tv_sec, sec, time1.tv_sec);
101 ret = (int)(tValEnd.tv_sec - tValStart.tv_sec);
104 ret = (int)(tValEnd.tv_sec - tValStart.tv_sec);
121 struct timeval set = {.tv_sec = setSec, .tv_usec = 0};
130 ICUNIT_ASSERT_EQUAL(tValStart.tv_sec, setSe
[all...]
/kernel/linux/linux-6.6/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
[all...]
/kernel/liteos_a/compat/posix/src/
H A Dtime.c90 if ((tv->tv_usec < 0) || (tv->tv_usec >= OS_SYS_US_PER_SECOND) || (tv->tv_sec < 0)) { in ValidTimeval()
105 if ((tv->tv_usec < 0) || (tv->tv_usec >= OS_SYS_US_PER_SECOND) || (tv->tv_sec < 0)) { in ValidTimeval64()
153 g_accDeltaFromAdj.tv_sec++; in OsAdjTime()
160 g_accDeltaFromAdj.tv_sec--; in OsAdjTime()
171 g_accDeltaFromAdj.tv_sec++; in OsAdjTime()
178 g_accDeltaFromAdj.tv_sec--; in OsAdjTime()
205 oldDelta->tv_sec = g_adjTimeLeft / OS_SYS_NS_PER_SECOND; in adjtime()
208 oldDelta->tv_sec = -(g_adjTimeLeft / OS_SYS_NS_PER_SECOND); in adjtime()
213 if ((delta == NULL) || ((delta->tv_sec == 0) && (delta->tv_usec == 0))) { in adjtime()
227 if ((delta->tv_sec < (INT_MI in adjtime()
[all...]
/kernel/linux/linux-5.10/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 in main()
[all...]
/kernel/linux/linux-6.6/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 in main()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/vDSO/
H A Dvdso_test_correctness.c41 long long tv_sec; member
219 if (a->tv_sec != b->tv_sec) in ts_leq()
220 return a->tv_sec < b->tv_sec; in ts_leq()
228 if (a->tv_sec != b->tv_sec) in ts64_leq()
229 return a->tv_sec < b->tv_sec; in ts64_leq()
236 if (a->tv_sec ! in tv_leq()
[all...]
/kernel/linux/linux-5.10/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()
[all...]
/kernel/linux/linux-6.6/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()
[all...]
/kernel/liteos_m/testsuites/unittest/posix/src/semaphore/
H A Dsemaphore_func_test.c81 LOG("Cur time tv_sec: %lld, tv_nsec: %ld", tsNow.tv_sec, tsNow.tv_nsec); in GetDelayedTime()
82 ts.tv_sec = tsNow.tv_sec + (tsNow.tv_nsec + setTimeNs) / nsecPerSec; in GetDelayedTime()
92 int ms = (ts1.tv_sec - ts2.tv_sec) * nsecPerSec + (ts1.tv_nsec - ts2.tv_nsec); in GetTimeDiff()
112 LOG("predicted time:%lld, %ld", ts.tv_sec, ts.tv_nsec);
120 LOG("tsNow %lld, %ld", tsNow.tv_sec, tsNow.tv_nsec);
144 LOG("\n ts %lld, %ld", ts.tv_sec, ts.tv_nsec);
151 LOG("\n tsBegin %lld, %ld, tsNow %lld, %ld", tsBegin.tv_sec, tsBegi
[all...]
/kernel/linux/linux-6.6/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
[all...]
/kernel/liteos_a/syscall/
H A Dtime_syscall.c421 if (stp.tv_sec > UINT32_MAX) { in SysClockSettime64()
425 t.tv_sec = stp.tv_sec; in SysClockSettime64()
451 stp.tv_sec = t.tv_sec; in SysClockGettime64()
478 stp.tv_sec = t.tv_sec; in SysClockGetres64()
503 rq.tv_sec = (sreq.tv_sec > UINT32_MAX) ? UINT32_MAX : sreq.tv_sec; in SysClockNanoSleep64()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/x86/
H A Dtest_vdso.c188 if (a->tv_sec != b->tv_sec) in ts_leq()
189 return a->tv_sec < b->tv_sec; in ts_leq()
196 if (a->tv_sec != b->tv_sec) in tv_leq()
197 return a->tv_sec < b->tv_sec; in tv_leq()
250 (unsigned long long)start.tv_sec, start.tv_nsec, in test_one_clock_gettime()
251 (unsigned long long)vdso.tv_sec, vds in test_one_clock_gettime()
[all...]

Completed in 10 milliseconds

12345678910>>...53