函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\gcov\fs.c Create Date:2022-07-27 12:35:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:static void add_links(struct gcov_node *node, struct dentry *parent)

返回类型:void

参数:

类型参数名称
struct gcov_node *node
struct dentry *parent
373 ext循环links等于分配数组内存并置零
376  如果非links则返回
378 i小于num循环
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  如果非target则转到:out_err
384  basename等于返回路径的最后一部分
385  如果basename恒等于target则转到: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  返回
393  out_err :
394  kfree(target)
395 i自减大于0循环
396  debugfs_remove(links[i])
397  kfree(links)
398  links = NULL
调用者
名称描述
new_nodeCreate a new node and associated debugfs entry. Needs to be called with* node_lock held.