Lines Matching refs:overhead
30 u64 overhead, bool report) in do_count_loop() argument
47 expected = instructions + overhead + (events[2].result.value * 10); in do_count_loop()
57 printf("Looped for %llu instructions, overhead %llu\n", instructions, overhead); in do_count_loop()
81 u64 current, overhead; in determine_overhead() local
85 overhead = events[0].result.value; in determine_overhead()
90 if (current < overhead) { in determine_overhead()
91 printf("Replacing overhead %llu with %llu\n", overhead, current); in determine_overhead()
92 overhead = current; in determine_overhead()
96 return overhead; in determine_overhead()
105 u64 overhead; in test_body() local
129 overhead = determine_overhead(events); in test_body()
130 printf("Overhead of null loop: %llu instructions\n", overhead); in test_body()
133 FAIL_IF(do_count_loop(events, 1000000, overhead, true)); in test_body()
136 FAIL_IF(do_count_loop(events, 10000000, overhead, true)); in test_body()
139 FAIL_IF(do_count_loop(events, 100000000, overhead, true)); in test_body()
142 FAIL_IF(do_count_loop(events, 1000000000, overhead, true)); in test_body()
145 FAIL_IF(do_count_loop(events, 16000000000, overhead, true)); in test_body()
148 FAIL_IF(do_count_loop(events, 64000000000, overhead, true)); in test_body()