Function report |
Source Code:arch\x86\kernel\dumpstack.c |
Create Date:2022-07-28 07:34:46 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:show_trace_log_lvl
Proto:void show_trace_log_lvl(struct task_struct *task, struct pt_regs *regs, unsigned long *stack, char *log_lvl)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct task_struct * | task | |
| struct pt_regs * | regs | |
| unsigned long * | stack | |
| char * | log_lvl |
| 166 | struct stack_info stack_info = {0} |
| 167 | visit_mask = 0 |
| 168 | graph_idx = 0 |
| 169 | bool partial = false |
| 173 | unwind_start( & state, task, regs, stack) |
| 174 | stack = If stack Else get_stack_pointer(task, regs) |
| 175 | regs = unwind_get_entry_regs( & state, & partial) |
| 196 | If get_stack_info(stack, task, & stack_info, & visit_mask) Then |
| 203 | stack = align the pointer to the (next) page boundary ((unsignedlong)stack) |
| 204 | If get_stack_info(stack, task, & stack_info, & visit_mask) Then Break |
| 208 | stack_name = stack_type_name(type) |
| 209 | If stack_name Then printk("%s <%s>\n", log_lvl, stack_name) |
| 212 | If regs Then show_regs_if_on_stack( & stack_info, regs, partial) |
| 227 | reliable = 0 |
| 228 | addr = Use READ_ONCE_NOCHECK() instead of READ_ONCE() if you need* to hide memory access from KASAN.( * stack) |
| 229 | ret_addr_p = unwind_get_return_address_ptr( & state) |
| 232 | If Not __kernel_text_address(addr) Then Continue |
| 242 | If stack == ret_addr_p Then reliable = 1 |
| 256 | If real_addr != addr Then printk_stack_address(addr, 0, log_lvl) |
| 260 | If Not reliable Then Continue |
| 263 | next : |
| 269 | unwind_next_frame( & state) |
| 272 | regs = unwind_get_entry_regs( & state, & partial) |
| 273 | If regs Then show_regs_if_on_stack( & stack_info, regs, partial) |
| 277 | If stack_name Then printk("%s </%s>\n", log_lvl, stack_name) |
| Name | Describe |
|---|---|
| show_stack | |
| show_stack_regs | |
| show_regs |
| 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 |