函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\fgraph.c Create Date:2022-07-27 13:24:31
Last Modify:2020-03-17 20:08:56 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:function_graph_enter

函数原型:int function_graph_enter(unsigned long ret, unsigned long func, unsigned long frame_pointer, unsigned long *retp)

返回类型:int

参数:

类型参数名称
unsigned longret
unsigned longfunc
unsigned longframe_pointer
unsigned long *retp
124  如果ftrace_direct_func_countftrace_find_rec_direct(ret - sizeof mcount call )则返回:负EBUSY
127  Current function 等于func
128  depth等于curr_ret_depth先自加
130  如果Add a function return address to the trace stack on thread info.则转到:out
134  如果非ftrace_graph_entry( & trace)则转到:out_ret
137  返回:0
138  out_ret :
139  curr_ret_stack自减
140  out :
141  curr_ret_depth自减
142  返回:负EBUSY