函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:This function returns an error if it detects any unreliable features of the* stack. Otherwise it guarantees that the stack trace is reliable.* If the task is not 'current', the caller *must* ensure the task is inactive.

函数原型:int arch_stack_walk_reliable(stack_trace_consume_fn consume_entry, void *cookie, struct task_struct *task)

返回类型:int

参数:

类型参数名称
stack_trace_consume_fnconsume_entry
void *cookie
struct task_struct *task
45  以非unwind_done( & state)且非unwind_error( & state)循环
49  regs等于unwind_get_entry_regs( & state, NULL)
50  如果regs
66  addr等于unwind_get_return_address( & state)
73  如果非addr则返回:负EINVAL
76  如果非consume_entry(cookie, addr, false)则返回:负EINVAL
81  如果unwind_error( & state)则返回:负EINVAL
85  如果非任务标志按位与I am a kernel thread 按位或I am an IDLE thread 的值的值则返回:负EINVAL
88  返回:0