Lines Matching refs:info
91 struct gcov_info *info = kzalloc(sizeof(*info), GFP_KERNEL); in llvm_gcov_init() local
93 if (!info) in llvm_gcov_init()
96 INIT_LIST_HEAD(&info->head); in llvm_gcov_init()
97 INIT_LIST_HEAD(&info->functions); in llvm_gcov_init()
101 list_add_tail(&info->head, &clang_gcov_list); in llvm_gcov_init()
102 current_info = info; in llvm_gcov_init()
106 gcov_event(GCOV_ADD, info); in llvm_gcov_init()
135 struct gcov_fn_info *info = kzalloc(sizeof(*info), GFP_KERNEL); in llvm_gcda_emit_function() local
137 if (!info) in llvm_gcda_emit_function()
140 INIT_LIST_HEAD(&info->head); in llvm_gcda_emit_function()
141 info->ident = ident; in llvm_gcda_emit_function()
142 info->checksum = func_checksum; in llvm_gcda_emit_function()
143 info->use_extra_checksum = use_extra_checksum; in llvm_gcda_emit_function()
144 info->cfg_checksum = cfg_checksum; in llvm_gcda_emit_function()
146 info->function_name = kstrdup(function_name, GFP_KERNEL); in llvm_gcda_emit_function()
148 list_add_tail(&info->head, ¤t_info->functions); in llvm_gcda_emit_function()
153 struct gcov_fn_info *info = kzalloc(sizeof(*info), GFP_KERNEL); in llvm_gcda_emit_function() local
155 if (!info) in llvm_gcda_emit_function()
158 INIT_LIST_HEAD(&info->head); in llvm_gcda_emit_function()
159 info->ident = ident; in llvm_gcda_emit_function()
160 info->checksum = func_checksum; in llvm_gcda_emit_function()
161 info->cfg_checksum = cfg_checksum; in llvm_gcda_emit_function()
162 list_add_tail(&info->head, ¤t_info->functions); in llvm_gcda_emit_function()
169 struct gcov_fn_info *info = list_last_entry(¤t_info->functions, in llvm_gcda_emit_arcs() local
172 info->num_counters = num_counters; in llvm_gcda_emit_arcs()
173 info->counters = counters; in llvm_gcda_emit_arcs()
191 const char *gcov_info_filename(struct gcov_info *info) in gcov_info_filename() argument
193 return info->filename; in gcov_info_filename()
200 unsigned int gcov_info_version(struct gcov_info *info) in gcov_info_version() argument
202 return info->version; in gcov_info_version()
212 struct gcov_info *gcov_info_next(struct gcov_info *info) in gcov_info_next() argument
214 if (!info) in gcov_info_next()
217 if (list_is_last(&info->head, &clang_gcov_list)) in gcov_info_next()
219 return list_next_entry(info, head); in gcov_info_next()
226 void gcov_info_link(struct gcov_info *info) in gcov_info_link() argument
228 list_add_tail(&info->head, &clang_gcov_list); in gcov_info_link()
236 void gcov_info_unlink(struct gcov_info *prev, struct gcov_info *info) in gcov_info_unlink() argument
239 __list_del_entry(&info->head); in gcov_info_unlink()
249 bool gcov_info_within_module(struct gcov_info *info, struct module *mod) in gcov_info_within_module() argument
251 return within_module((unsigned long)info->filename, mod); in gcov_info_within_module()
264 void gcov_info_reset(struct gcov_info *info) in gcov_info_reset() argument
268 list_for_each_entry(fn, &info->functions, head) in gcov_info_reset()
392 struct gcov_info *gcov_info_dup(struct gcov_info *info) in gcov_info_dup() argument
397 dup = kmemdup(info, sizeof(*dup), GFP_KERNEL); in gcov_info_dup()
402 dup->filename = kstrdup(info->filename, GFP_KERNEL); in gcov_info_dup()
406 list_for_each_entry(fn, &info->functions, head) { in gcov_info_dup()
426 void gcov_info_free(struct gcov_info *info) in gcov_info_free() argument
430 list_for_each_entry_safe(fn, tmp, &info->functions, head) { in gcov_info_free()
436 kfree(info->filename); in gcov_info_free()
437 kfree(info); in gcov_info_free()
440 void gcov_info_free(struct gcov_info *info) in gcov_info_free() argument
444 list_for_each_entry_safe(fn, tmp, &info->functions, head) { in gcov_info_free()
449 kfree(info->filename); in gcov_info_free()
450 kfree(info); in gcov_info_free()
464 struct gcov_info *info; member
526 static size_t convert_to_gcda(char *buffer, struct gcov_info *info) in convert_to_gcda() argument
533 pos += store_gcov_u32(buffer, pos, info->version); in convert_to_gcda()
534 pos += store_gcov_u32(buffer, pos, info->checksum); in convert_to_gcda()
536 list_for_each_entry(fi_ptr, &info->functions, head) { in convert_to_gcda()
570 struct gcov_iterator *gcov_iter_new(struct gcov_info *info) in gcov_iter_new() argument
578 iter->info = info; in gcov_iter_new()
580 iter->size = convert_to_gcda(NULL, info); in gcov_iter_new()
585 convert_to_gcda(iter->buffer, info); in gcov_iter_new()
611 return iter->info; in gcov_iter_get_info()