• Home
  • Raw
  • Download

Lines Matching refs:info

84 	struct gcov_info *info = kzalloc(sizeof(*info), GFP_KERNEL);  in llvm_gcov_init()  local
86 if (!info) in llvm_gcov_init()
89 INIT_LIST_HEAD(&info->head); in llvm_gcov_init()
90 INIT_LIST_HEAD(&info->functions); in llvm_gcov_init()
94 list_add_tail(&info->head, &clang_gcov_list); in llvm_gcov_init()
95 current_info = info; in llvm_gcov_init()
99 gcov_event(GCOV_ADD, info); in llvm_gcov_init()
115 struct gcov_fn_info *info = kzalloc(sizeof(*info), GFP_KERNEL); in llvm_gcda_emit_function() local
117 if (!info) in llvm_gcda_emit_function()
120 INIT_LIST_HEAD(&info->head); in llvm_gcda_emit_function()
121 info->ident = ident; in llvm_gcda_emit_function()
122 info->checksum = func_checksum; in llvm_gcda_emit_function()
123 info->cfg_checksum = cfg_checksum; in llvm_gcda_emit_function()
124 list_add_tail(&info->head, &current_info->functions); in llvm_gcda_emit_function()
130 struct gcov_fn_info *info = list_last_entry(&current_info->functions, in llvm_gcda_emit_arcs() local
133 info->num_counters = num_counters; in llvm_gcda_emit_arcs()
134 info->counters = counters; in llvm_gcda_emit_arcs()
152 const char *gcov_info_filename(struct gcov_info *info) in gcov_info_filename() argument
154 return info->filename; in gcov_info_filename()
161 unsigned int gcov_info_version(struct gcov_info *info) in gcov_info_version() argument
163 return info->version; in gcov_info_version()
173 struct gcov_info *gcov_info_next(struct gcov_info *info) in gcov_info_next() argument
175 if (!info) in gcov_info_next()
178 if (list_is_last(&info->head, &clang_gcov_list)) in gcov_info_next()
180 return list_next_entry(info, head); in gcov_info_next()
187 void gcov_info_link(struct gcov_info *info) in gcov_info_link() argument
189 list_add_tail(&info->head, &clang_gcov_list); in gcov_info_link()
197 void gcov_info_unlink(struct gcov_info *prev, struct gcov_info *info) in gcov_info_unlink() argument
200 __list_del_entry(&info->head); in gcov_info_unlink()
210 bool gcov_info_within_module(struct gcov_info *info, struct module *mod) in gcov_info_within_module() argument
212 return within_module((unsigned long)info->filename, mod); in gcov_info_within_module()
225 void gcov_info_reset(struct gcov_info *info) in gcov_info_reset() argument
229 list_for_each_entry(fn, &info->functions, head) in gcov_info_reset()
315 struct gcov_info *gcov_info_dup(struct gcov_info *info) in gcov_info_dup() argument
320 dup = kmemdup(info, sizeof(*dup), GFP_KERNEL); in gcov_info_dup()
325 dup->filename = kstrdup(info->filename, GFP_KERNEL); in gcov_info_dup()
329 list_for_each_entry(fn, &info->functions, head) { in gcov_info_dup()
348 void gcov_info_free(struct gcov_info *info) in gcov_info_free() argument
352 list_for_each_entry_safe(fn, tmp, &info->functions, head) { in gcov_info_free()
357 kfree(info->filename); in gcov_info_free()
358 kfree(info); in gcov_info_free()
368 size_t convert_to_gcda(char *buffer, struct gcov_info *info) in convert_to_gcda() argument
375 pos += store_gcov_u32(buffer, pos, info->version); in convert_to_gcda()
376 pos += store_gcov_u32(buffer, pos, info->checksum); in convert_to_gcda()
378 list_for_each_entry(fi_ptr, &info->functions, head) { in convert_to_gcda()