Searched refs:tv_now (Results 1 – 2 of 2) sorted by relevance
| /linux/tools/testing/selftests/powerpc/benchmarks/ |
| H A D | null_syscall.c | 133 struct timespec tv_start, tv_now; in main() local 143 clock_gettime(CLOCK_MONOTONIC, &tv_now); in main() 146 elapsed_ns = (tv_now.tv_sec - tv_start.tv_sec) * 1000000000ULL + in main() 147 (tv_now.tv_nsec - tv_start.tv_nsec); in main()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | test_xsk.c | 1112 struct timeval tv_end, tv_now, tv_timeout = {THREAD_TMOUT, 0}; in receive_pkts() local 1120 ret = gettimeofday(&tv_now, NULL); in receive_pkts() 1124 timeradd(&tv_now, &tv_timeout, &tv_end); in receive_pkts() 1136 ret = gettimeofday(&tv_now, NULL); in receive_pkts() 1140 if (timercmp(&tv_now, &tv_end, >)) { in receive_pkts() 1276 struct timeval tv_end, tv_now, tv_timeout = {THREAD_TMOUT, 0}; in wait_for_tx_completion() local 1279 ret = gettimeofday(&tv_now, NULL); in wait_for_tx_completion() 1282 timeradd(&tv_now, &tv_timeout, &tv_end); in wait_for_tx_completion() 1285 ret = gettimeofday(&tv_now, NULL); in wait_for_tx_completion() 1288 if (timercmp(&tv_now, &tv_end, >)) { in wait_for_tx_completion()
|