| Function report | 
| Source Code: kernel\gcov\fs.c | Create Date:2022-07-28 11:31:41 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Create a new node and associated debugfs entry. Needs to be called with* node_lock held.
Proto:static struct gcov_node *new_node(struct gcov_node *parent, struct gcov_info *info, const char *name)
Type:struct gcov_node
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct gcov_node * | parent | |
| struct gcov_info * | info | |
| const char * | name | 
| 434 | node = 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). | 
| 437 | If info Then | 
| 438 | loaded_info = 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). | 
| 440 | If Not loaded_info Then Go to err_nomem | 
| 445 | If info Then | 
| 448 | Else dentry = debugfs_create_dir(name, dentry) | 
| 450 | If info Then 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. | 
| 455 | Return node | 
| 457 | err_nomem : | 
| 459 | pr_warn("out of memory\n") | 
| 460 | Return NULL | 
| Name | Describe | 
|---|---|
| add_node | 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. | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |