| Function report | 
| Source Code: arch\x86\kernel\stacktrace.c | Create Date:2022-07-28 07:53:32 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:arch_stack_walk
Proto:void arch_stack_walk(stack_trace_consume_fn consume_entry, void *cookie, struct task_struct *task, struct pt_regs *regs)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| stack_trace_consume_fn | consume_entry | |
| void * | cookie | |
| struct task_struct * | task | |
| struct pt_regs * | regs | 
| 21 | If regs && Not consume_entry(cookie, ip, false) Then Return | 
| 24 | When Not unwind_done( & state) cycle | 
| 26 | addr = unwind_get_return_address( & state) | 
| 27 | If Not addr || Not consume_entry(cookie, addr, false) Then Break | 
| Name | Describe | 
|---|---|
| stack_trace_save_tsk | stack_trace_save_tsk - Save a task stack trace into a storage array*@task: The task to examine*@store: Pointer to storage array*@size: Size of the storage array*@skipnr: Number of entries to skip at the start of the stack trace | 
| stack_trace_save_regs | stack_trace_save_regs - Save a stack trace based on pt_regs into a storage array*@regs: Pointer to pt_regs to examine*@store: Pointer to storage array*@size: Size of the storage array*@skipnr: Number of entries to skip at the start of the stack trace | 
| 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 |