函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\gcov\gcc_3_4.c Create Date:2022-07-27 12:35:45
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
259  active等于Determine number of active counters. Based on gcc magic.
260  dup等于分配内存并置零
261  如果非dup则返回:NULL
263  version等于version
264  stamp等于stamp
265  n_functions等于n_functions
266  ctr_mask等于ctr_mask
268  filename等于kstrdup(filename, GFP_KERNEL)
269  如果非filename则转到:err_free
272  functions等于kmemdup(functions, n_functions * Get size of function info entry. Based on gcc magic. , GFP_KERNEL)
274  如果非functions则转到:err_free
277 i小于active循环
278  ctr等于counts[i]
279  size等于numsizeof(gcov_type)
281  num等于num
282  merge等于merge
283  values等于vmalloc(size)
284  如果非values则转到:err_free
286  内存复制(values, values, size)
288  返回:dup
290  err_free :
291  gcov_info_free - release memory for profiling data set duplicate*@info: profiling data set duplicate to free
292  返回:NULL
调用者
名称描述
get_accumulated_infoReturn a newly allocated profiling data set which contains the sum of* all profiling data associated with the given node.