Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Add a function return address to the trace stack on thread info.

Proto:static int ftrace_push_return_trace(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
65  If Value for the false possibility is greater at compile time(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) Then Return -EBUSY
68  If Not ret_stack Then Return -EBUSY
75  smp_rmb()
78  If curr_ret_stack == FTRACE_RETFUNC_DEPTH - 1 Then
79  atomic_inc( & trace_overrun)
80  Return -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  Return 0
Caller
NameDescribe
function_graph_enter