函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Add a function return address to the trace stack on thread info.

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

返回类型:int

参数:

类型参数名称
unsigned longret
unsigned longfunc
unsigned longframe_pointer
unsigned long *retp
65  如果此条件成立可能性小(为编译器优化)(race_graph_is_dead - returns true if ftrace_graph_stop() was called* ftrace_graph_stop() is called when a severe error is detected in* the function graph tracing. This function is called by the critical)则返回:负EBUSY
68  如果非ret_stack则返回:负EBUSY
75  smp_rmb()
78  如果curr_ret_stack恒等于FTRACE_RETFUNC_DEPTH减1则
79  atomic_inc( & trace_overrun)
80  返回:负EBUSY
83  calltime等于race_clock_local(): the simplest and least coherent tracing clock.* Useful for tracing that does not cross to other CPUs nor* does it go through idle events.
85  index等于curr_ret_stack先自加
86  The "volatile" is due to gcc bugs ()
87  ret等于ret
88  func等于func
89  calltime等于calltime
94  retp等于retp
96  返回:0
调用者
名称描述
function_graph_enter