Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:function_stack_trace_call

Proto:static void function_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
179  tr = private
186  If Value for the false possibility is greater at compile time(! function tracing enabled ) Then Return
193  local_irq_save(flags)
194  cpu = These macros fold the SMP functionality into a single CPU system()
195  data = per_cpu_ptr(data, cpu)
196  disabled = atomic_inc_return( & disabled)
198  If Value is more likely to compile time(disabled == 1) Then
199  pc = We mask the PREEMPT_NEED_RESCHED bit so as not to confuse all current users* that think a non-zero value indicates we cannot preempt.
200  trace_function(tr, ip, parent_ip, flags, pc)
201  __trace_stack(tr, flags, Skip 3:* __trace_stack()* function_stack_trace_call()* ftrace_call(), pc)
204  atomic_dec( & disabled)
205  local_irq_restore(flags)