函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\gcov\clang.c Create Date:2022-07-27 12:36:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:gcov_fn_info_dup

函数原型:static struct gcov_fn_info *gcov_fn_info_dup(struct gcov_fn_info *fn)

返回类型:struct gcov_fn_info

参数:

类型参数名称
struct gcov_fn_info *fn
301  fn_dup等于kmemdup(fn, fn的长度, GFP_KERNEL)
303  如果非fn_dup则返回:NULL
305  初始化链表头
307  function_name等于kstrdup(function_name, GFP_KERNEL)
308  如果非function_name则转到:err_name
311  cv_size等于num_counterscounters[0]的长度
312  counters等于vmalloc(cv_size)
313  如果非counters则转到:err_counters
315  内存复制(counters, counters, cv_size)
317  返回:fn_dup
319  err_counters :
320  kfree(function_name)
321  err_name :
322  kfree(fn_dup)
323  返回:NULL
调用者
名称描述
gcov_info_dupgcov_info_dup - duplicate profiling data set*@info: profiling data set to duplicate* Return newly allocated duplicate on success, %NULL on error.