函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\dumpstack_32.c Create Date:2022-07-27 08:33:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:get_stack_info

函数原型:int get_stack_info(unsigned long *stack, struct task_struct *task, struct stack_info *info, unsigned long *visit_mask)

返回类型:int

参数:

类型参数名称
unsigned long *stack
struct task_struct *task
struct stack_info *info
unsigned long *visit_mask
115  如果非stack则转到:unknown
118  task等于如果task否则当前进程
120  如果in_task_stack(stack, task, info)则转到:recursion_check
123  如果task不等于当前进程则转到:unknown
126  如果in_entry_stack(stack, info)则转到:recursion_check
129  如果in_hardirq_stack(stack, info)则转到:recursion_check
132  如果in_softirq_stack(stack, info)则转到:recursion_check
135  如果in_doublefault_stack(stack, info)则转到:recursion_check
138  转到:unknown
140  recursion_check :
146  如果visit_mask
147  如果visit_mask按位与1UL左移type位则
148  printk_deferred_once(warning conditions "WARNING: stack recursion on stack type %d\n", type)
149  转到:unknown
151  visit_mask或等于1UL左移type
154  返回:0
156  unknown :
157  type等于STACK_TYPE_UNKNOWN
158  返回:负EINVAL
调用者
名称描述
show_trace_log_lvl
stack_access_ok
__unwind_start
unwind_dump
update_stack_state
__unwind_start
unwind_next_frame
__unwind_start