Home
last modified time | relevance | path

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

/linux-6.1.9/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()
/linux-6.1.9/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()
/linux-6.1.9/tools/power/x86/turbostat/
Dturbostat.c344 struct timeval tv_end; member
1124 timersub(&t->tv_end, &t->tv_begin, &tv); in format_counters()
1130 outp += sprintf(outp, "%10ld.%06ld\t", t->tv_end.tv_sec, t->tv_end.tv_usec); in format_counters()
1558 old->tv_end = new->tv_end; in delta_thread()
1651 t->tv_end.tv_sec = 0; in clear_counters()
1652 t->tv_end.tv_usec = 0; in clear_counters()
1733 average.threads.tv_end = t->tv_end; in sum_counters()
2339 gettimeofday(&t->tv_end, (struct timezone *)NULL); in get_counters()
/linux-6.1.9/tools/testing/selftests/bpf/
Dxskxceiver.c911 struct timeval tv_end, tv_now, tv_timeout = {THREAD_TMOUT, 0}; in receive_pkts() local
923 timeradd(&tv_now, &tv_timeout, &tv_end); in receive_pkts()
930 if (timercmp(&tv_now, &tv_end, >)) { in receive_pkts()