函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:arch_stack_walk

函数原型:void arch_stack_walk(stack_trace_consume_fn consume_entry, void *cookie, struct task_struct *task, struct pt_regs *regs)

返回类型:void

参数:

类型参数名称
stack_trace_consume_fnconsume_entry
void *cookie
struct task_struct *task
struct pt_regs *regs
21  如果regs且非consume_entry(cookie, ip, false)则返回
24  以非unwind_done( & state)循环
26  addr等于unwind_get_return_address( & state)
27  如果非addr或非consume_entry(cookie, addr, false)则退出
调用者
名称描述
stack_trace_save_tskstack_trace_save_tsk - Save a task stack trace into a storage array*@task: The task to examine*@store: Pointer to storage array*@size: Size of the storage array*@skipnr: Number of entries to skip at the start of the stack trace
stack_trace_save_regsstack_trace_save_regs - Save a stack trace based on pt_regs into a storage array*@regs: Pointer to pt_regs to examine*@store: Pointer to storage array*@size: Size of the storage array*@skipnr: Number of entries to skip at the start of the stack trace
stack_trace_savestack_trace_save - Save a stack trace into a storage array*@store: Pointer to storage array*@size: Size of the storage array*@skipnr: Number of entries to skip at the start of the stack trace* Return: Number of trace entries stored.