Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:gcov_fn_info_dup

Proto:static struct gcov_fn_info *gcov_fn_info_dup(struct gcov_fn_info *fn)

Type:struct gcov_fn_info

Parameter:

TypeParameterName
struct gcov_fn_info *fn
301  fn_dup = kmemdup(fn, size of fn , GFP_KERNEL)
303  If Not fn_dup Then Return NULL
305  Initialization list head
307  function_name = kstrdup(function_name, GFP_KERNEL)
308  If Not function_name Then Go to err_name
311  cv_size = num_counters * size of counters[0]
312  counters = vmalloc(cv_size)
313  If Not counters Then Go to err_counters
315  No 3D Now!(counters, counters, cv_size)
317  Return fn_dup
319  err_counters :
320  kfree(function_name)
321  err_name :
322  kfree(fn_dup)
323  Return NULL
Caller
NameDescribe
gcov_info_dupgcov_info_dup - duplicate profiling data set*@info: profiling data set to duplicate* Return newly allocated duplicate on success, %NULL on error.