Searched refs:tv_diff (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.4/tools/perf/bench/ |
D | mem-functions.c | 251 struct timeval tv_start, tv_end, tv_diff; in do_memcpy_gettimeofday() local 266 timersub(&tv_end, &tv_start, &tv_diff); in do_memcpy_gettimeofday() 268 return (double)(((double)size * nr_loops) / timeval2double(&tv_diff)); in do_memcpy_gettimeofday() 325 struct timeval tv_start, tv_end, tv_diff; in do_memset_gettimeofday() local 340 timersub(&tv_end, &tv_start, &tv_diff); in do_memset_gettimeofday() 342 return (double)(((double)size * nr_loops) / timeval2double(&tv_diff)); in do_memset_gettimeofday()
|
/Linux-v5.4/tools/testing/selftests/x86/ |
D | test_vsyscall.c | 191 static double tv_diff(const struct timeval *a, const struct timeval *b) in tv_diff() function 212 d1 = tv_diff(tv_other, tv_sys1); in check_gtod() 213 d2 = tv_diff(tv_sys2, tv_other); in check_gtod()
|