Home
last modified time | relevance | path

Searched refs:tv_end (Results 1 – 4 of 4) sorted by relevance

/tools/testing/selftests/powerpc/benchmarks/
Dgettimeofday.c15 struct timeval tv_start, tv_end, tv_diff; in test_gettimeofday() local
20 gettimeofday(&tv_end, NULL); in test_gettimeofday()
23 timersub(&tv_start, &tv_end, &tv_diff); in test_gettimeofday()
/tools/perf/bench/
Dmem-functions.c256 struct timeval tv_start, tv_end, tv_diff; in do_memcpy_gettimeofday() local
265 BUG_ON(gettimeofday(&tv_end, NULL)); in do_memcpy_gettimeofday()
267 timersub(&tv_end, &tv_start, &tv_diff); in do_memcpy_gettimeofday()
326 struct timeval tv_start, tv_end, tv_diff; in do_memset_gettimeofday() local
339 BUG_ON(gettimeofday(&tv_end, NULL)); in do_memset_gettimeofday()
341 timersub(&tv_end, &tv_start, &tv_diff); in do_memset_gettimeofday()
/tools/power/x86/turbostat/
Dturbostat.c346 struct timeval tv_end; member
1127 timersub(&t->tv_end, &t->tv_begin, &tv); in format_counters()
1133 outp += sprintf(outp, "%10ld.%06ld\t", t->tv_end.tv_sec, t->tv_end.tv_usec); in format_counters()
1561 old->tv_end = new->tv_end; in delta_thread()
1654 t->tv_end.tv_sec = 0; in clear_counters()
1655 t->tv_end.tv_usec = 0; in clear_counters()
1736 average.threads.tv_end = t->tv_end; in sum_counters()
2343 gettimeofday(&t->tv_end, (struct timezone *)NULL); in get_counters()
/tools/testing/selftests/bpf/
Dxskxceiver.c969 struct timeval tv_end, tv_now, tv_timeout = {THREAD_TMOUT, 0}; in receive_pkts() local
981 timeradd(&tv_now, &tv_timeout, &tv_end); in receive_pkts()
991 if (timercmp(&tv_now, &tv_end, >)) { in receive_pkts()