Searched refs:tv (Results 1 – 10 of 10) sorted by relevance
/tools/testing/selftests/timers/ |
D | leapcrash.c | 95 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()
|
D | leap-a-day.c | 260 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()
|
D | rtctest.c | 91 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/ |
D | builtin-buildid-cache.c | 41 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()
|
D | builtin-kvm.c | 562 struct timeval tv; in show_timeofday() local 565 gettimeofday(&tv, NULL); in show_timeofday() 566 if (localtime_r(&tv.tv_sec, <ime)) { in show_timeofday() 568 pr_info("%s.%06ld", date, tv.tv_usec); in show_timeofday()
|
/tools/testing/selftests/networking/timestamping/ |
D | timestamping.c | 160 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()
|
D | txtimestamp.c | 109 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/ |
D | test_vsyscall.c | 51 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/ |
D | tmon.h | 51 struct timeval tv; member
|
D | sysfs.c | 501 gettimeofday(&trec[next_thermal_record].tv, NULL); in update_thermal_data()
|