函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Create a node for a given profiling data set and add it to all lists and* debugfs. Needs to be called with node_lock held.

函数原型:static void add_node(struct gcov_info *info)

返回类型:void

参数:

类型参数名称
struct gcov_info *info
572  filename等于kstrdup(Interface to access gcov_info data , GFP_KERNEL)
573  如果非filename则返回
575  parent等于root_node
577 next等于strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for循环
578  如果curr恒等于next则继续下一循环
580  next等于0
581  如果字符串比较恒等于0则继续下一循环
583  如果字符串比较恒等于0则
584  如果非parent则转到:err_remove
586  parent等于parent
587  继续下一循环
589  node等于Find child node with given basename. Needs to be called with node_lock* held.
590  如果非node
592  如果非node则转到:err_remove
595  parent等于node
598  node等于Create a new node and associated debugfs entry. Needs to be called with* node_lock held.
599  如果非node则转到:err_remove
601  out :
602  kfree(filename)
603  返回
605  err_remove :
606  remove_node(parent)
607  转到:out
调用者
名称描述
gcov_eventCallback to create/remove profiling files when code compiled with* -fprofile-arcs is loaded/unloaded.