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

Name:function_trace_call

Proto:static void function_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
128  tr = private
135  If Value for the false possibility is greater at compile time(! function tracing enabled ) Then Return
138  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.
139  preempt_disable_notrace()
141  bit = trace_test_and_set_recursion(TRACE_FTRACE_START, TRACE_FTRACE_MAX)
142  If bit < 0 Then Go to out
145  cpu = smp_processor_id()
146  data = per_cpu_ptr(data, cpu)
147  If Not atomic_read( & disabled) Then
148  local_save_flags(flags)
149  trace_function(tr, ip, parent_ip, flags, pc)
151  trace_clear_recursion(bit)
153  out :
154  preempt_enable_notrace()