函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__ftrace_clear_event_pids

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

返回类型:void

参数:

类型参数名称
struct trace_array *tr
606  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(filtered_pids, lockdep_is_held( & event_mutex))
608  如果非pid_list则返回
611  Tracepoint for task switches, performed by the scheduler:
612  Tracepoint for task switches, performed by the scheduler:
614  Tracepoint called when the task is actually woken; p->state == TASK_RUNNNG.* It it not always called from the waking context.
615  Tracepoint called when the task is actually woken; p->state == TASK_RUNNNG.* It it not always called from the waking context.
617  Tracepoint for waking up a new task:
618  Tracepoint for waking up a new task:
620  Tracepoint called when waking a task; this tracepoint is guaranteed to be* called from the waking context.
621  Tracepoint called when waking a task; this tracepoint is guaranteed to be* called from the waking context.
624  lear_bit - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers).
627  遍历可用CPU(cpu)
628  ({
628  ({
628  循环
628  const void * __vpp_verify = NULL
628  当0循环
628  data
628  })
628  })->ignore_pid = false
630  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(filtered_pids, NULL)
633  tracepoint_synchronize_unregister()
635  trace_free_pid_list(pid_list)
调用者
名称描述
ftrace_clear_event_pids
event_trace_del_tracerMust be called with event_mutex held