函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:clear_ftrace_pids

函数原型:static void clear_ftrace_pids(struct trace_array *tr)

返回类型:void

参数:

类型参数名称
struct trace_array *tr
6978  pid_list等于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(function_pids, lockdep_is_held( & ftrace_lock))
6980  如果非pid_list则返回
6983  Tracepoint for task switches, performed by the scheduler:
6985  遍历可用CPU(cpu)
6986  ({
6986  ({
6986  循环
6986  const void * __vpp_verify = NULL
6986  当0循环
6986  data
6986  })
6986  })->ftrace_ignore_pid = false
6988  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(function_pids, NULL)
6991  Wait for a grace period to elapse. But it is illegal to invoke* synchronize_rcu() from within an RCU read-side critical section.* Therefore, any legal call to synchronize_rcu() is a quiescent
6993  trace_free_pid_list(pid_list)
调用者
名称描述
ftrace_clear_pids
ftrace_pid_reset