Home
last modified time | relevance | path

Searched refs:timeval (Results 1 - 25 of 260) sorted by relevance

1234567891011

/kernel/liteos_a/testsuites/unittest/fuzz/
H A Dadjtime_fuzzer.cpp37 struct timeval fa; in TestAdjtime()
42 char *delta = DT_SetGetFixBlob(&g_Element[0], sizeof(struct timeval), sizeof(struct timeval), (char *)&fa); in TestAdjtime()
43 char *olddelta = DT_SetGetFixBlob(&g_Element[1], sizeof(struct timeval), sizeof(struct timeval), (char *)&fa); in TestAdjtime()
44 adjtime((struct timeval *)delta, (struct timeval *)olddelta); in TestAdjtime()
/kernel/linux/linux-5.10/arch/loongarch/kernel/
H A Dspinlock_test.c12 u64 timeval; in ss_get() local
31 timeval = ktime_us_delta(finish, start); in ss_get()
32 printk("Single: %llu\n",timeval); in ss_get()
88 u64 timeval; in multi_get() local
108 timeval = ktime_us_delta(finish, t1.start); in multi_get()
109 printk("Multiple: %llu\n",timeval); in multi_get()
/kernel/liteos_a/testsuites/unittest/net/socket/smoke/
H A Dnet_socket_test_007.cpp112 ret = setsockopt(lsfd, SOL_SOCKET, SO_RCVTIMEO, reinterpret_cast<struct timeval *>(INVALID_USER_ADDR), in TcpTest()
113 static_cast<socklen_t>(sizeof(struct timeval))); in TcpTest()
116 ret = setsockopt(lsfd, SOL_SOCKET, SO_RCVTIMEO, reinterpret_cast<struct timeval *>(INVALID_KERNEL_ADDR), in TcpTest()
117 static_cast<socklen_t>(sizeof(struct timeval))); in TcpTest()
120 ret = getsockopt(lsfd, SOL_SOCKET, SO_RCVTIMEO, reinterpret_cast<struct timeval *>(INVALID_USER_ADDR), in TcpTest()
121 reinterpret_cast<socklen_t *>(sizeof(struct timeval))); in TcpTest()
124 ret = getsockopt(lsfd, SOL_SOCKET, SO_RCVTIMEO, reinterpret_cast<struct timeval *>(INVALID_KERNEL_ADDR), in TcpTest()
125 reinterpret_cast<socklen_t *>(sizeof(struct timeval))); in TcpTest()
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
H A Delfcore.h46 struct timeval pr_utime;
47 struct timeval pr_stime;
48 struct timeval pr_cutime;
49 struct timeval pr_cstime;
H A Dtime.h16 struct timeval { struct
32 struct timeval it_interval;
33 struct timeval it_value;
H A Dresource.h15 struct timeval ru_utime;
16 struct timeval ru_stime;
/kernel/liteos_m/testsuites/unittest/xts/time/
H A Dclock_time_test.c91 struct timeval tValStart = {0};
92 struct timeval tValEnd = {0};
119 struct timeval tValStart = {0};
120 struct timeval tValEnd = {0};
121 struct timeval set = {.tv_sec = setSec, .tv_usec = 0};
/kernel/linux/linux-5.10/include/uapi/linux/
H A Dtime.h17 struct timeval { struct
28 struct timeval it_interval;/* timer interval */
29 struct timeval it_value; /* current value */
/kernel/linux/linux-6.6/include/uapi/linux/
H A Dtime.h17 struct timeval { struct
28 struct timeval it_interval;/* timer interval */
29 struct timeval it_value; /* current value */
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/
H A Dtime.h30 struct timeval { struct
39 struct timeval it_interval;
40 struct timeval it_value;
H A Dresource.h28 struct timeval ru_utime;
29 struct timeval ru_stime;
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
H A Dtime.h30 struct timeval { struct
39 struct timeval it_interval;
40 struct timeval it_value;
H A Dresource.h28 struct timeval ru_utime;
29 struct timeval ru_stime;
/kernel/linux/linux-6.6/tools/include/nolibc/
H A Dunistd.h24 struct timeval my_timeval = { msecs / 1000, (msecs % 1000) * 1000 }; in msleep()
37 struct timeval my_timeval = { seconds, 0 }; in sleep()
48 struct timeval my_timeval = { usecs / 1000000, usecs % 1000000 }; in usleep()
/kernel/linux/linux-5.10/tools/testing/selftests/timers/
H A Dposix_timers.c62 static int check_diff(struct timeval start, struct timeval end) in check_diff()
80 struct timeval start, end; in check_itimer()
142 struct timeval start, end; in check_timer_create()
/kernel/liteos_a/testsuites/unittest/process/lock/mutex/full/
H A Dpthread_mutex_test_018.cpp47 struct timeval timeVal = { 0 }; in ThreadFuncTest2()
72 struct timeval timeVal = { 0 }; in ThreadFuncTest1()
108 struct timeval time = { 0 }; in Testcase()
109 struct timeval timeVal = { 0 }; in Testcase()
/kernel/linux/linux-5.10/tools/testing/selftests/x86/
H A Dtest_vdso.c39 typedef long (*vgtod_t)(struct timeval *tv, struct timezone *tz);
129 static inline int sys_gettimeofday(struct timeval *tv, struct timezone *tz) in sys_gettimeofday()
194 static bool tv_leq(const struct timeval *a, const struct timeval *b) in tv_leq()
280 struct timeval start, vdso, end; in test_gettimeofday()
H A Dtest_vsyscall.c57 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz);
161 static inline long sys_gtod(struct timeval *tv, struct timezone *tz) in sys_gtod()
193 static double tv_diff(const struct timeval *a, const struct timeval *b) in tv_diff()
199 static int check_gtod(const struct timeval *tv_sys1, in check_gtod()
200 const struct timeval *tv_sys2, in check_gtod()
203 const struct timeval *tv_other, in check_gtod()
222 printf("[OK]\t%s gettimeofday()'s timeval was okay\n", which); in check_gtod()
230 struct timeval tv_sys1, tv_sys2, tv_vdso, tv_vsys; in test_gtod()
/kernel/linux/linux-6.6/tools/testing/selftests/timers/
H A Dposix_timers.c62 static int check_diff(struct timeval start, struct timeval end) in check_diff()
80 struct timeval start, end; in check_itimer()
142 struct timeval start, end; in check_timer_create()
/kernel/linux/linux-5.10/tools/testing/selftests/net/
H A Dtimestamping.c120 struct timeval now; in sendpacket()
141 struct timeval tv; in printpacket()
143 struct timeval now; in printpacket()
162 struct timeval *stamp = in printpacket()
163 (struct timeval *)CMSG_DATA(cmsg); in printpacket()
315 struct timeval next; in main()
465 struct timeval now; in main()
466 struct timeval delta; in main()
/kernel/linux/linux-6.6/tools/testing/selftests/x86/
H A Dtest_vsyscall.c57 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz);
158 static inline long sys_gtod(struct timeval *tv, struct timezone *tz) in sys_gtod()
190 static double tv_diff(const struct timeval *a, const struct timeval *b) in tv_diff()
196 static int check_gtod(const struct timeval *tv_sys1, in check_gtod()
197 const struct timeval *tv_sys2, in check_gtod()
200 const struct timeval *tv_other, in check_gtod()
219 printf("[OK]\t%s gettimeofday()'s timeval was okay\n", which); in check_gtod()
227 struct timeval tv_sys1, tv_sys2, tv_vdso, tv_vsys; in test_gtod()
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dtimestamping.c138 struct timeval now; in sendpacket()
160 struct timeval tv; in printpacket()
162 struct timeval now; in printpacket()
181 struct timeval *stamp = in printpacket()
182 (struct timeval *)CMSG_DATA(cmsg); in printpacket()
335 struct timeval next; in main()
501 struct timeval now; in main()
502 struct timeval delta; in main()
/kernel/linux/linux-5.10/tools/testing/selftests/vDSO/
H A Dvdso_test_gettimeofday.c46 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); in main()
54 struct timeval tv; in main()
/kernel/linux/linux-6.6/tools/testing/selftests/vDSO/
H A Dvdso_test_gettimeofday.c49 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); in main()
57 struct timeval tv; in main()
/kernel/liteos_a/testsuites/unittest/process/lock/mutex/smoke/
H A Dpthread_mutex_test_008.cpp45 struct timeval timeVal = { 0 }; in ThreadFuncTest3()
71 struct timeval timeVal = { 0 }; in ThreadFuncTest2()
98 struct timeval timeVal = { 0 }; in ThreadFuncTest1()

Completed in 10 milliseconds

1234567891011