Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:arch_stack_walk

Proto:void arch_stack_walk(stack_trace_consume_fn consume_entry, void *cookie, struct task_struct *task, struct pt_regs *regs)

Type:void

Parameter:

TypeParameterName
stack_trace_consume_fnconsume_entry
void *cookie
struct task_struct *task
struct pt_regs *regs
21  If regs && Not consume_entry(cookie, ip, false) Then Return
24  When Not unwind_done( & state) cycle
26  addr = unwind_get_return_address( & state)
27  If Not addr || Not consume_entry(cookie, addr, false) Then Break
Caller
NameDescribe
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