函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:register_ftrace_graph

函数原型:int register_ftrace_graph(struct fgraph_ops *gops)

返回类型:int

参数:

类型参数名称
struct fgraph_ops *gops
600  ret等于0
602  mutex_lock( & ftrace_lock)
605  如果ftrace_graph_active
606  ret等于负EBUSY
607  转到:out
610  register_pm_notifier( & ftrace_suspend_notifier)
612  ftrace_graph_active自加
613  ret等于Allocate a return stack for each task
614  如果ret
615  ftrace_graph_active自减
616  转到: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  返回:ret
调用者
名称描述
register_irqsoff_function
register_wakeup_function
graph_trace_init