Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:clear_ftrace_pids

Proto:static void clear_ftrace_pids(struct trace_array *tr)

Type:void

Parameter:

TypeParameterName
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  If Not pid_list Then Return
6983  Tracepoint for task switches, performed by the scheduler:
6985  for_each_possible_cpu(cpu)
6986  ({
6986  ({
6986  Do
6986  const void * __vpp_verify = NULL
6986  When 0 cycle
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)
Caller
NameDescribe
ftrace_clear_pids
ftrace_pid_reset