Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\gcov\clang.c Create Date:2022-07-28 11:33:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:struct gcov_info *gcov_info_dup(struct gcov_info *info)

Type:struct gcov_info

Parameter:

TypeParameterName
struct gcov_info *info
337  dup = kmemdup(info, size of dup , GFP_KERNEL)
338  If Not dup Then Return NULL
340  Initialization list head
341  Initialization list head
342  filename = kstrdup(filename, GFP_KERNEL)
343  If Not filename Then Go to err
347  fn_dup = gcov_fn_info_dup(fn)
349  If Not fn_dup Then Go to err
351  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
354  Return dup
356  err :
357  gcov_info_free - release memory for profiling data set duplicate*@info: profiling data set duplicate to free
358  Return NULL
Caller
NameDescribe
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.