Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\dumpstack_32.c Create Date:2022-07-28 07:33:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get_stack_info

Proto:int get_stack_info(unsigned long *stack, struct task_struct *task, struct stack_info *info, unsigned long *visit_mask)

Type:int

Parameter:

TypeParameterName
unsigned long *stack
struct task_struct *task
struct stack_info *info
unsigned long *visit_mask
115  If Not stack Then Go to unknown
118  task = If task Else current process
120  If in_task_stack(stack, task, info) Then Go to recursion_check
123  If task != current process Then Go to unknown
126  If in_entry_stack(stack, info) Then Go to recursion_check
129  If in_hardirq_stack(stack, info) Then Go to recursion_check
132  If in_softirq_stack(stack, info) Then Go to recursion_check
135  If in_doublefault_stack(stack, info) Then Go to recursion_check
138  Go to unknown
140  recursion_check :
146  If visit_mask Then
147  If visit_mask & 1UL << type Then
148  printk_deferred_once(warning conditions "WARNING: stack recursion on stack type %d\n", type)
149  Go to unknown
151  visit_mask |= 1UL << type
154  Return 0
156  unknown :
157  type = STACK_TYPE_UNKNOWN
158  Return -EINVAL
Caller
NameDescribe
show_trace_log_lvl
stack_access_ok
__unwind_start
unwind_dump
update_stack_state
__unwind_start
unwind_next_frame
__unwind_start