函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:gcov_info_dup - duplicate profiling data set*@info: profiling data set to duplicate* Return newly allocated duplicate on success, %NULL on error.

函数原型:struct gcov_info *gcov_info_dup(struct gcov_info *info)

返回类型:struct gcov_info

参数:

类型参数名称
struct gcov_info *info
337  dup等于kmemdup(info, dup的长度, GFP_KERNEL)
338  如果非dup则返回:NULL
340  初始化链表头
341  初始化链表头
342  filename等于kstrdup(filename, GFP_KERNEL)
343  如果非filename则转到:err
347  fn_dup等于gcov_fn_info_dup(fn)
349  如果非fn_dup则转到:err
351  添加链表项
354  返回:dup
356  err :
357  gcov_info_free - release memory for profiling data set duplicate*@info: profiling data set duplicate to free
358  返回:NULL
调用者
名称描述
get_accumulated_infoReturn a newly allocated profiling data set which contains the sum of* all profiling data associated with the given node.
save_infoSave the data of a profiling data set which is being unloaded.