| Function report | 
| Source Code: kernel\trace\fgraph.c | Create Date:2022-07-28 12:17:55 | 
| Last Modify:2020-03-17 20:08:56 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Allocate a return stack for the idle task. May be the first* time through, or it may be done by CPU hotplug online.
Proto:void ftrace_graph_init_idle_task(struct task_struct *t, int cpu)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct task_struct * | t | |
| int | cpu | 
| 507 | curr_ret_stack = -1 | 
| 508 | curr_ret_depth = -1 | 
| 516 | If ftrace_graph_active Then | 
| 519 | ret_stack = per_cpu(idle_ret_stack, cpu) | 
| 520 | If Not ret_stack Then | 
| 521 | ret_stack = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). | 
| 525 | If Not ret_stack Then Return | 
| 527 | per_cpu(idle_ret_stack, cpu) = ret_stack | 
| 529 | graph_init_task(t, ret_stack) | 
| Name | Describe | 
|---|---|
| start_graph_tracing | Allocate a return stack for each task | 
| 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 |