Lines Matching refs:info

98 const char *gcov_info_filename(struct gcov_info *info)  in gcov_info_filename()  argument
100 return info->filename; in gcov_info_filename()
107 unsigned int gcov_info_version(struct gcov_info *info) in gcov_info_version() argument
109 return info->version; in gcov_info_version()
119 struct gcov_info *gcov_info_next(struct gcov_info *info) in gcov_info_next() argument
121 if (!info) in gcov_info_next()
124 return info->next; in gcov_info_next()
131 void gcov_info_link(struct gcov_info *info) in gcov_info_link() argument
133 info->next = gcov_info_head; in gcov_info_link()
134 gcov_info_head = info; in gcov_info_link()
142 void gcov_info_unlink(struct gcov_info *prev, struct gcov_info *info) in gcov_info_unlink() argument
145 prev->next = info->next; in gcov_info_unlink()
147 gcov_info_head = info->next; in gcov_info_unlink()
159 static int counter_active(struct gcov_info *info, unsigned int type) in counter_active() argument
161 return info->merge[type] ? 1 : 0; in counter_active()
165 static unsigned int num_counter_active(struct gcov_info *info) in num_counter_active() argument
171 if (counter_active(info, i)) in num_counter_active()
181 void gcov_info_reset(struct gcov_info *info) in gcov_info_reset() argument
187 for (fi_idx = 0; fi_idx < info->n_functions; fi_idx++) { in gcov_info_reset()
188 ci_ptr = info->functions[fi_idx]->ctrs; in gcov_info_reset()
191 if (!counter_active(info, ct_idx)) in gcov_info_reset()
252 struct gcov_info *gcov_info_dup(struct gcov_info *info) in gcov_info_dup() argument
263 dup = kmemdup(info, sizeof(*dup), GFP_KERNEL); in gcov_info_dup()
271 dup->filename = kstrdup(info->filename, GFP_KERNEL); in gcov_info_dup()
275 dup->functions = kcalloc(info->n_functions, in gcov_info_dup()
280 active = num_counter_active(info); in gcov_info_dup()
284 for (fi_idx = 0; fi_idx < info->n_functions; fi_idx++) { in gcov_info_dup()
289 *(dup->functions[fi_idx]) = *(info->functions[fi_idx]); in gcov_info_dup()
291 sci_ptr = info->functions[fi_idx]->ctrs; in gcov_info_dup()
321 void gcov_info_free(struct gcov_info *info) in gcov_info_free() argument
328 if (!info->functions) in gcov_info_free()
331 active = num_counter_active(info); in gcov_info_free()
333 for (fi_idx = 0; fi_idx < info->n_functions; fi_idx++) { in gcov_info_free()
334 if (!info->functions[fi_idx]) in gcov_info_free()
337 ci_ptr = info->functions[fi_idx]->ctrs; in gcov_info_free()
342 kfree(info->functions[fi_idx]); in gcov_info_free()
346 kfree(info->functions); in gcov_info_free()
347 kfree(info->filename); in gcov_info_free()
348 kfree(info); in gcov_info_free()
361 struct gcov_info *info; member
423 static size_t convert_to_gcda(char *buffer, struct gcov_info *info) in convert_to_gcda() argument
434 pos += store_gcov_u32(buffer, pos, info->version); in convert_to_gcda()
435 pos += store_gcov_u32(buffer, pos, info->stamp); in convert_to_gcda()
437 for (fi_idx = 0; fi_idx < info->n_functions; fi_idx++) { in convert_to_gcda()
438 fi_ptr = info->functions[fi_idx]; in convert_to_gcda()
450 if (!counter_active(info, ct_idx)) in convert_to_gcda()
476 struct gcov_iterator *gcov_iter_new(struct gcov_info *info) in gcov_iter_new() argument
484 iter->info = info; in gcov_iter_new()
486 iter->size = convert_to_gcda(NULL, info); in gcov_iter_new()
491 convert_to_gcda(iter->buffer, info); in gcov_iter_new()
517 return iter->info; in gcov_iter_get_info()