Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\ftrace.c Create Date:2022-07-28 12:46:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:update_ftrace_function

Proto:static void update_ftrace_function(void)

Type:void

Parameter:Nothing

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  If What to set function_trace_op to == ftrace_list_end Then
199  func = ftrace_stub
206  Else if 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 Then
208  func = ftrace_ops_get_list_func(ftrace_ops_list)
210  Else
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  If ftrace_trace_function == func Then Return
226  If func == ftrace_ops_list_func Then
227  ftrace_trace_function = func
232  Return
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
Caller
NameDescribe
__register_ftrace_function
__unregister_ftrace_function
ftrace_update_pid_func
ftrace_enable_sysctl