Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\gcov\gcc_3_4.c Create Date:2022-07-28 11:32:13
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
259  active = Determine number of active counters. Based on gcc magic.
260  dup = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
261  If Not dup Then Return NULL
263  version = version
264  stamp = stamp
265  n_functions = n_functions
266  ctr_mask = ctr_mask
268  filename = kstrdup(filename, GFP_KERNEL)
269  If Not filename Then Go to err_free
272  functions = kmemdup(functions, n_functions * Get size of function info entry. Based on gcc magic. , GFP_KERNEL)
274  If Not functions Then Go to err_free
277  When i < active cycle
278  ctr = counts[i]
279  size = num * sizeof(gcov_type)
281  num = num
282  merge = merge
283  values = vmalloc(size)
284  If Not values Then Go to err_free
286  No 3D Now!(values, values, size)
288  Return dup
290  err_free :
291  gcov_info_free - release memory for profiling data set duplicate*@info: profiling data set duplicate to free
292  Return NULL