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:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:int arch_stack_walk_reliable(stack_trace_consume_fn consume_entry, void *cookie, struct task_struct *task)

Type:int

Parameter:

TypeParameterName
stack_trace_consume_fnconsume_entry
void *cookie
struct task_struct *task
45  When Not unwind_done( & state) && Not unwind_error( & state) cycle
49  regs = unwind_get_entry_regs( & state, NULL)
50  If regs Then
66  addr = unwind_get_return_address( & state)
73  If Not addr Then Return -EINVAL
76  If Not consume_entry(cookie, addr, false) Then Return -EINVAL
81  If unwind_error( & state) Then Return -EINVAL
85  If Not ( Per task flags (PF_*), defined further below: & (I am a kernel thread | I am an IDLE thread )) Then Return -EINVAL
88  Return 0