| Function report | 
| Source Code: kernel\trace\trace_functions_graph.c | Create Date:2022-07-28 12:13:49 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:graph_trace_open
Proto:void graph_trace_open(struct trace_iterator *iter)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct trace_iterator * | iter | 
| 1207 | private = NULL | 
| 1212 | 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). | 
| 1216 | cpu_data = alloc_percpu_gfp(structfgraph_cpu_data, gfpflags) | 
| 1217 | If Not cpu_data Then Go to out_err_free | 
| 1220 | for_each_possible_cpu(cpu) | 
| 1221 | pid_t * pid = & (({ | 
| 1221 | })->last_pid) | 
| 1222 | int * depth = & (({ | 
| 1222 | })->depth) | 
| 1223 | int * ignore = & (({ | 
| 1223 | })->ignore) | 
| 1224 | int * depth_irq = & (({ | 
| 1224 | })->depth_irq) | 
| 1226 | pid = -1 | 
| 1227 | depth = 0 | 
| 1228 | ignore = 0 | 
| 1229 | depth_irq = -1 | 
| 1234 | Return | 
| 1236 | out_err_free : | 
| 1238 | out_err : | 
| 1239 | pr_warn("function graph tracer: not enough memory\n") | 
| 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 |