Lines Matching refs:fn
266 struct gcov_fn_info *fn; in gcov_info_reset() local
268 list_for_each_entry(fn, &info->functions, head) in gcov_info_reset()
269 memset(fn->counters, 0, in gcov_info_reset()
270 sizeof(fn->counters[0]) * fn->num_counters); in gcov_info_reset()
336 static struct gcov_fn_info *gcov_fn_info_dup(struct gcov_fn_info *fn) in gcov_fn_info_dup() argument
339 struct gcov_fn_info *fn_dup = kmemdup(fn, sizeof(*fn), in gcov_fn_info_dup()
345 fn_dup->function_name = kstrdup(fn->function_name, GFP_KERNEL); in gcov_fn_info_dup()
349 cv_size = fn->num_counters * sizeof(fn->counters[0]); in gcov_fn_info_dup()
353 memcpy(fn_dup->counters, fn->counters, cv_size); in gcov_fn_info_dup()
364 static struct gcov_fn_info *gcov_fn_info_dup(struct gcov_fn_info *fn) in gcov_fn_info_dup() argument
367 struct gcov_fn_info *fn_dup = kmemdup(fn, sizeof(*fn), in gcov_fn_info_dup()
373 cv_size = fn->num_counters * sizeof(fn->counters[0]); in gcov_fn_info_dup()
380 memcpy(fn_dup->counters, fn->counters, cv_size); in gcov_fn_info_dup()
395 struct gcov_fn_info *fn; in gcov_info_dup() local
406 list_for_each_entry(fn, &info->functions, head) { in gcov_info_dup()
407 struct gcov_fn_info *fn_dup = gcov_fn_info_dup(fn); in gcov_info_dup()
428 struct gcov_fn_info *fn, *tmp; in gcov_info_free() local
430 list_for_each_entry_safe(fn, tmp, &info->functions, head) { in gcov_info_free()
431 kfree(fn->function_name); in gcov_info_free()
432 vfree(fn->counters); in gcov_info_free()
433 list_del(&fn->head); in gcov_info_free()
434 kfree(fn); in gcov_info_free()
442 struct gcov_fn_info *fn, *tmp; in gcov_info_free() local
444 list_for_each_entry_safe(fn, tmp, &info->functions, head) { in gcov_info_free()
445 vfree(fn->counters); in gcov_info_free()
446 list_del(&fn->head); in gcov_info_free()
447 kfree(fn); in gcov_info_free()