Lines Matching refs:info
112 const char *gcov_info_filename(struct gcov_info *info) in gcov_info_filename() argument
114 return info->filename; in gcov_info_filename()
121 unsigned int gcov_info_version(struct gcov_info *info) in gcov_info_version() argument
123 return info->version; in gcov_info_version()
133 struct gcov_info *gcov_info_next(struct gcov_info *info) in gcov_info_next() argument
135 if (!info) in gcov_info_next()
138 return info->next; in gcov_info_next()
145 void gcov_info_link(struct gcov_info *info) in gcov_info_link() argument
147 info->next = gcov_info_head; in gcov_info_link()
148 gcov_info_head = info; in gcov_info_link()
156 void gcov_info_unlink(struct gcov_info *prev, struct gcov_info *info) in gcov_info_unlink() argument
159 prev->next = info->next; in gcov_info_unlink()
161 gcov_info_head = info->next; in gcov_info_unlink()
171 bool gcov_info_within_module(struct gcov_info *info, struct module *mod) in gcov_info_within_module() argument
173 return within_module((unsigned long)info, mod); in gcov_info_within_module()
185 static int counter_active(struct gcov_info *info, unsigned int type) in counter_active() argument
187 return info->merge[type] ? 1 : 0; in counter_active()
191 static unsigned int num_counter_active(struct gcov_info *info) in num_counter_active() argument
197 if (counter_active(info, i)) in num_counter_active()
207 void gcov_info_reset(struct gcov_info *info) in gcov_info_reset() argument
213 for (fi_idx = 0; fi_idx < info->n_functions; fi_idx++) { in gcov_info_reset()
214 ci_ptr = info->functions[fi_idx]->ctrs; in gcov_info_reset()
217 if (!counter_active(info, ct_idx)) in gcov_info_reset()
278 struct gcov_info *gcov_info_dup(struct gcov_info *info) in gcov_info_dup() argument
289 dup = kmemdup(info, sizeof(*dup), GFP_KERNEL); in gcov_info_dup()
297 dup->filename = kstrdup(info->filename, GFP_KERNEL); in gcov_info_dup()
301 dup->functions = kcalloc(info->n_functions, in gcov_info_dup()
306 active = num_counter_active(info); in gcov_info_dup()
310 for (fi_idx = 0; fi_idx < info->n_functions; fi_idx++) { in gcov_info_dup()
315 *(dup->functions[fi_idx]) = *(info->functions[fi_idx]); in gcov_info_dup()
317 sci_ptr = info->functions[fi_idx]->ctrs; in gcov_info_dup()
347 void gcov_info_free(struct gcov_info *info) in gcov_info_free() argument
354 if (!info->functions) in gcov_info_free()
357 active = num_counter_active(info); in gcov_info_free()
359 for (fi_idx = 0; fi_idx < info->n_functions; fi_idx++) { in gcov_info_free()
360 if (!info->functions[fi_idx]) in gcov_info_free()
363 ci_ptr = info->functions[fi_idx]->ctrs; in gcov_info_free()
368 kfree(info->functions[fi_idx]); in gcov_info_free()
372 kfree(info->functions); in gcov_info_free()
373 kfree(info->filename); in gcov_info_free()
374 kfree(info); in gcov_info_free()
384 size_t convert_to_gcda(char *buffer, struct gcov_info *info) in convert_to_gcda() argument
395 pos += store_gcov_u32(buffer, pos, info->version); in convert_to_gcda()
396 pos += store_gcov_u32(buffer, pos, info->stamp); in convert_to_gcda()
403 for (fi_idx = 0; fi_idx < info->n_functions; fi_idx++) { in convert_to_gcda()
404 fi_ptr = info->functions[fi_idx]; in convert_to_gcda()
417 if (!counter_active(info, ct_idx)) in convert_to_gcda()