Home
last modified time | relevance | path

Searched refs:tv (Results 1 – 10 of 10) sorted by relevance

/tools/testing/selftests/timers/
Dleapcrash.c95 struct timeval tv; in main() local
99 tv.tv_sec = next_leap - 2; in main()
100 tv.tv_usec = 0; in main()
101 if (settimeofday(&tv, NULL)) { in main()
Dleap-a-day.c260 struct timeval tv; in main() local
262 tv.tv_sec = next_leap - 10; in main()
263 tv.tv_usec = 0; in main()
264 settimeofday(&tv, NULL); in main()
265 printf("Setting time to %s", ctime(&tv.tv_sec)); in main()
Drtctest.c91 struct timeval tv = {5, 0}; /* 5 second timeout on select */ in main() local
97 retval = select(fd+1, &readfds, NULL, NULL, &tv); in main()
/tools/perf/
Dbuiltin-buildid-cache.c41 struct timeval tv; in build_id_cache__kcore_dir() local
45 if (gettimeofday(&tv, NULL) || !localtime_r(&tv.tv_sec, &tm)) in build_id_cache__kcore_dir()
51 scnprintf(dir, sz, "%s%02u", dt, (unsigned)tv.tv_usec / 10000); in build_id_cache__kcore_dir()
Dbuiltin-kvm.c562 struct timeval tv; in show_timeofday() local
565 gettimeofday(&tv, NULL); in show_timeofday()
566 if (localtime_r(&tv.tv_sec, &ltime)) { in show_timeofday()
568 pr_info("%s.%06ld", date, tv.tv_usec); in show_timeofday()
/tools/testing/selftests/networking/timestamping/
Dtimestamping.c160 struct timeval tv; in printpacket() local
261 if (ioctl(sock, SIOCGSTAMP, &tv)) in printpacket()
265 (long)tv.tv_sec, in printpacket()
266 (long)tv.tv_usec); in printpacket()
Dtxtimestamp.c109 struct timeval tv; /* avoid dependency on -lrt */ in print_timestamp_usr() local
111 gettimeofday(&tv, NULL); in print_timestamp_usr()
112 ts.tv_sec = tv.tv_sec; in print_timestamp_usr()
113 ts.tv_nsec = tv.tv_usec * 1000; in print_timestamp_usr()
/tools/testing/selftests/x86/
Dtest_vsyscall.c51 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz);
159 static inline long sys_gtod(struct timeval *tv, struct timezone *tz) in sys_gtod() argument
161 return syscall(SYS_gettimeofday, tv, tz); in sys_gtod()
/tools/thermal/tmon/
Dtmon.h51 struct timeval tv; member
Dsysfs.c501 gettimeofday(&trec[next_thermal_record].tv, NULL); in update_thermal_data()