Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
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
171  printk("%sCall Trace:\n", log_lvl)
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)
193  When stack cycle
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)
225  When stack < end cycle
227  reliable = 0
232  If Not __kernel_text_address(addr) Then Continue
239  If regs && stack == ip Then Go to next
242  If stack == ret_addr_p Then reliable = 1
260  If Not reliable Then Continue
263  :
277  If stack_name Then printk("%s </%s>\n", log_lvl, stack_name)
Caller
NameDescribe
show_stack
show_stack_regs
show_regs