Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Create links to additional files (usually .c and .gcno files) which the* gcov tool expects to find in the same directory as the gcov data file.

Proto:static void add_links(struct gcov_node *node, struct dentry *parent)

Type:void

Parameter:

TypeParameterName
struct gcov_node *node
struct dentry *parent
373  When ext cycle links = kcalloc - allocate memory for an array. The memory is set to zero.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).
376  If Not links Then Return
378  When i < num cycle
379  target = Construct a string representing the symbolic link target for the given* gcov data file name and link type. Depending on the link type and the* location of the data file, the link target can either point to a
382  If Not target Then Go to out_err
384  basename = kbasename - return the last part of a pathname.*@path: path to extract the filename from.
385  If basename == target Then Go to out_err
387  links[i] = debugfs_create_symlink(For a filename .tmp_filename.ext return filename.ext. Needed to compensate* for filename skewing caused by the mod-versioning mechanism., parent, target)
389  kfree(target)
392  Return
393  out_err :
394  kfree(target)
395  When i-- > 0 cycle
396  debugfs_remove(links[i])
397  kfree(links)
398  links = NULL
Caller
NameDescribe
new_nodeCreate a new node and associated debugfs entry. Needs to be called with* node_lock held.