Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:static void add_node(struct gcov_info *info)

Type:void

Parameter:

TypeParameterName
struct gcov_info *info
572  filename = kstrdup(Interface to access gcov_info data , GFP_KERNEL)
573  If Not filename Then Return
575  parent = root_node
577  When 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 cycle
578  If curr == next Then Continue
580  next = 0
581  If strcmp(curr, ".") == 0 Then Continue
583  If strcmp(curr, "..") == 0 Then
584  If Not parent Then Go to err_remove
586  parent = parent
587  Continue
589  node = Find child node with given basename. Needs to be called with node_lock* held.
590  If Not node Then
592  If Not node Then Go to err_remove
595  parent = node
598  node = Create a new node and associated debugfs entry. Needs to be called with* node_lock held.
599  If Not node Then Go to err_remove
601  out :
602  kfree(filename)
603  Return
605  err_remove :
606  remove_node(parent)
607  Go to out
Caller
NameDescribe
gcov_eventCallback to create/remove profiling files when code compiled with* -fprofile-arcs is loaded/unloaded.