Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:race_filter_add_remove_task - Add or remove a task from a pid_list*@pid_list: The list to modify*@self: The current task for fork or NULL for exit*@task: The task to add or remove* If adding a task, if @self is defined, the task is only added if @self

Proto:void trace_filter_add_remove_task(struct trace_pid_list *pid_list, struct task_struct *self, struct task_struct *task)

Type:void

Parameter:

TypeParameterName
struct trace_pid_list *pid_list
struct task_struct *self
struct task_struct *task
417  If Not pid_list Then Return
421  If self Then
422  If Not race_find_filtered_pid - check if a pid exists in a filtered_pid list*@filtered_pids: The list of pids to check*@search_pid: The PID to find in @filtered_pids* Returns true if @search_pid is fonud in @filtered_pids, and false otherwis. Then Return
427  If process id >= pid_max Then Return
431  If self Then Atomically set a bit in memory
433  Else 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).
Caller
NameDescribe
event_filter_pid_sched_process_exit
event_filter_pid_sched_process_fork
ftrace_pid_follow_sched_process_fork
ftrace_pid_follow_sched_process_exit