函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\ftrace.c Create Date:2022-07-27 13:57:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:update_ftrace_function

函数原型:static void update_ftrace_function(void)

返回类型:void

参数:

194  What to set function_trace_op to 等于cu_dereference_protected() - fetch RCU pointer when updates prevented*@p: The pointer to read, prior to dereferencing*@c: The conditions under which the dereference will take place* Return the value of the specified RCU-protected pointer, but omit(ftrace_ops_list, lockdep_is_held( & ftrace_lock))
198  如果What to set function_trace_op to 恒等于ftrace_list_end
199  func等于ftrace_stub
206  否则如果cu_dereference_protected() - fetch RCU pointer when updates prevented*@p: The pointer to read, prior to dereferencing*@c: The conditions under which the dereference will take place* Return the value of the specified RCU-protected pointer, but omit(next, lockdep_is_held( & ftrace_lock))恒等于ftrace_list_end
208  func等于ftrace_ops_get_list_func(ftrace_ops_list)
210  否则
212  What to set function_trace_op to 等于ftrace_list_end
213  func等于ftrace_ops_list_func
216  The function graph tracer should only trace the functions defined* by set_ftrace_filter and set_ftrace_notrace
219  如果ftrace_trace_function恒等于func则返回
226  如果func恒等于ftrace_ops_list_func
227  ftrace_trace_function等于func
232  返回
246  ftrace_trace_function等于ftrace_ops_list_func
251  schedule_on_each_cpu - execute a function synchronously on each online CPU*@func: the function to call* schedule_on_each_cpu() executes @func on each online CPU using the* system workqueue and blocks until all CPUs have completed.
253  Current function tracing op 等于What to set function_trace_op to
255  smp_wmb()
257  smp_call_function(ftrace_sync_ipi, NULL, 1)
261  ftrace_trace_function等于func
调用者
名称描述
__register_ftrace_function
__unregister_ftrace_function
ftrace_update_pid_func
ftrace_enable_sysctl