Lines Matching refs:overhead
26 uint64_t overhead, bool report) in do_count_loop() argument
46 expected = instructions + overhead; in do_count_loop()
51 printf("Looped for %lu instructions, overhead %lu\n", instructions, overhead); in do_count_loop()
72 uint64_t current, overhead; in determine_overhead() local
76 overhead = event->result.value; in determine_overhead()
81 if (current < overhead) { in determine_overhead()
82 printf("Replacing overhead %lu with %lu\n", overhead, current); in determine_overhead()
83 overhead = current; in determine_overhead()
87 return overhead; in determine_overhead()
112 uint64_t overhead; in instruction_count() local
131 overhead = determine_overhead(&event); in instruction_count()
132 printf("Overhead of null loop: %lu instructions\n", overhead); in instruction_count()
135 FAIL_IF(do_count_loop(&event, 0x100000, overhead, true)); in instruction_count()
138 FAIL_IF(do_count_loop(&event, 0xa00000, overhead, true)); in instruction_count()
141 FAIL_IF(do_count_loop(&event, 0x6400000, overhead, true)); in instruction_count()
144 FAIL_IF(do_count_loop(&event, 0x40000000, overhead, true)); in instruction_count()
147 FAIL_IF(do_count_loop(&event, 0x400000000, overhead, true)); in instruction_count()
150 FAIL_IF(do_count_loop(&event, 0x1000000000, overhead, true)); in instruction_count()
153 FAIL_IF(do_count_loop(&event, 0x2000000000, overhead, true)); in instruction_count()