Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:register_ftrace_graph

Proto:int register_ftrace_graph(struct fgraph_ops *gops)

Type:int

Parameter:

TypeParameterName
struct fgraph_ops *gops
600  ret = 0
602  mutex_lock( & ftrace_lock)
605  If ftrace_graph_active Then
606  ret = -EBUSY
607  Go to out
610  register_pm_notifier( & ftrace_suspend_notifier)
612  ftrace_graph_active++
613  ret = Allocate a return stack for each task
614  If ret Then
615  ftrace_graph_active--
616  Go to out
619  The callbacks that hook a function = retfunc
627  __ftrace_graph_entry = entryfunc
628  ftrace_graph_entry = ftrace_graph_entry_test
629  The function graph tracer should only trace the functions defined* by set_ftrace_filter and set_ftrace_notrace
631  ret = Keep as macros so we do not need to define the commands ( & graph_ops, FTRACE_START_FUNC_RET)
632  out :
633  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
634  Return ret
Caller
NameDescribe
register_irqsoff_function
register_wakeup_function
graph_trace_init