Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_stack.c Create Date:2022-07-28 12:11:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:stack_trace_call

Proto:static void stack_trace_call(unsigned long ip, unsigned long parent_ip, struct ftrace_ops *op, struct pt_regs *pt_regs)

Type:void

Parameter:

TypeParameterName
unsigned longip
unsigned longparent_ip
struct ftrace_ops *op
struct pt_regs *pt_regs
297  preempt_disable_notrace()
300  __this_cpu_inc(disable_stack_tracer)
301  If Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.(disable_stack_tracer) != 1 Then Go to out
305  If Not _is_watching - see if RCU thinks that the current CPU is not idle* Return true if RCU is watching the running CPU, which means that this* CPU can safely enter RCU read-side critical sections Then Go to out
308  ip += sizeof mcount call
310  The stack tracer looks for a maximum stack at each call from a function. It* registers a callback from ftrace, and in that callback it examines the stack* size. It determines the stack size from the variable passed in, which is the
312  out :
313  __this_cpu_dec(disable_stack_tracer)
315  preempt_enable_notrace()