Lines Matching refs:overhead
30 u64 overhead, bool report) in do_count_loop() argument
45 expected = instructions + overhead; in do_count_loop()
53 printf("Looped for %llu instructions, overhead %llu\n", instructions, overhead); in do_count_loop()
76 u64 current, overhead; in determine_overhead() local
80 overhead = events[0].result.value; in determine_overhead()
85 if (current < overhead) { in determine_overhead()
86 printf("Replacing overhead %llu with %llu\n", overhead, current); in determine_overhead()
87 overhead = current; in determine_overhead()
91 return overhead; in determine_overhead()
97 u64 overhead; in test_body() local
112 overhead = determine_overhead(events); in test_body()
113 printf("Overhead of null loop: %llu instructions\n", overhead); in test_body()
116 FAIL_IF(do_count_loop(events, 1000000, overhead, true)); in test_body()
119 FAIL_IF(do_count_loop(events, 10000000, overhead, true)); in test_body()
122 FAIL_IF(do_count_loop(events, 100000000, overhead, true)); in test_body()
125 FAIL_IF(do_count_loop(events, 1000000000, overhead, true)); in test_body()
128 FAIL_IF(do_count_loop(events, 16000000000, overhead, true)); in test_body()
131 FAIL_IF(do_count_loop(events, 64000000000, overhead, true)); in test_body()