Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__unwind_start

Proto:void __unwind_start(struct unwind_state *state, struct task_struct *task, struct pt_regs *regs, unsigned long *first_frame)

Type:void

Parameter:

TypeParameterName
struct unwind_state *state
struct task_struct *task
struct pt_regs *regs
unsigned long *first_frame
371  memset(state, 0, size of state )
372  task = task
373  got_irq = regs
376  If regs && ser_mode(regs) determines whether a register set came from user* mode Then
377  type = STACK_TYPE_UNKNOWN
378  Return
381  bp = get_frame_pointer(task, regs)
392  If regs && Return frame for iretq == 0 && sp >= first_frame Then
393  next_bp = bp
394  bp = sp - 1
398  get_stack_info(bp, task, & stack_info, & stack_mask)
400  update_stack_state(state, bp)
407  When Not unwind_done(state) && ( Not on_stack( & stack_info, first_frame, sizeof(long)) || next_bp == NULL && bp < first_frame ) cycle
410  unwind_next_frame(state)