Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:trace_graph_entry

Proto:int trace_graph_entry(struct ftrace_graph_ent *trace)

Type:int

Parameter:

TypeParameterName
struct ftrace_graph_ent *trace
129  tr = graph_array
137  If trace_recursion_test(TRACE_GRAPH_NOTRACE_BIT) Then Return 0
147  If ftrace_graph_notrace_addr(Current function ) Then
148  trace_recursion_set(TRACE_GRAPH_NOTRACE_BIT)
153  Return 1
156  If Not ftrace_trace_task(tr) Then Return 0
159  If ftrace_graph_ignore_func(trace) Then Return 0
162  If ftrace_graph_ignore_irqs() Then Return 0
169  If tracing_thresh Then Return 1
172  local_irq_save(flags)
173  cpu = These macros fold the SMP functionality into a single CPU system()
174  data = per_cpu_ptr(data, cpu)
175  disabled = atomic_inc_return( & disabled)
176  If Value is more likely to compile time(disabled == 1) Then
177  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.
178  ret = __trace_graph_entry(tr, trace, flags, pc)
179  Else
180  ret = 0
183  atomic_dec( & disabled)
184  local_irq_restore(flags)
186  Return ret