| Function report | 
| Source Code: kernel\trace\trace_stat.c | Create Date:2022-07-28 12:06:08 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:insert_stat
Proto:static int insert_stat(struct rb_root *root, void *stat, cmp_func_t cmp)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct rb_root * | root | |
| void * | stat | |
| cmp_func_t | cmp | 
| 80 | data = 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). | 
| 103 | rb_link_node( & node, parent, new) | 
| 104 | rb_insert_color( & node, root) | 
| 105 | Return 0 | 
| Name | Describe | 
|---|---|
| stat_seq_init | Initialize the stat rbtree at each trace_stat file opening.* All of these copies and sorting are required on all opening* since the stats could have changed between two file sessions. | 
| 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 |