Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\fgraph.c Create Date:2022-07-28 12:17:38
Last Modify:2020-03-17 20:08:56 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:function_graph_enter

Proto:int function_graph_enter(unsigned long ret, unsigned long func, unsigned long frame_pointer, unsigned long *retp)

Type:int

Parameter:

TypeParameterName
unsigned longret
unsigned longfunc
unsigned longframe_pointer
unsigned long *retp
124  If ftrace_direct_func_count && ftrace_find_rec_direct(ret - sizeof mcount call ) Then Return -EBUSY
127  Current function = func
128  depth = ++curr_ret_depth
130  If Add a function return address to the trace stack on thread info. Then Go to out
134  If Not ftrace_graph_entry( & trace) Then Go to out_ret
137  Return 0
138  out_ret :
139  curr_ret_stack--
140  out :
141  curr_ret_depth--
142  Return -EBUSY