/* gcov_iter_start - reset file iterator to starting position @iter: file iterator  */
void gcov_iter_start(struct gcov_iterator *iter)
/* gcov_iter_start - reset file iterator to starting position @iter: file iterator  */
void gcov_iter_start(struct gcov_iterator *iter)
{
	int i;
	iter->record = 0;
	iter->function = 0;
	iter->type = 0;
	iter->count = 0;
	iter->num_types = 0;
	for (i = 0; i < GCOV_COUNTERS; i++) {
		if (counter_active(iter->info, i)) {
			iter->type_info[iter->num_types].ctr_type = i;
			iter->type_info[iter->num_types++].offset = 0;
		}
	}
}