函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-27 14:50:45
Last Modify:2022-05-20 07:50:19 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:perf_event_pid_type

函数原型:static u32 perf_event_pid_type(struct perf_event *event, struct task_struct *p, enum pid_type type)

返回类型:u32

参数:

类型参数名称
struct perf_event *event
struct task_struct *p
enum pid_typetype
1328  如果parentevent等于parent
1331  nr等于__task_pid_nr_ns(p, type, ns)
1333  如果非nr且非pid_alive - check that a task structure is not stale*@p: Task structure to be checked.* Test if a process is not yet dead (at most zombie state)* If pid_alive fails, then pointers within the task structure* can be stale and must not be dereferenced.nr等于负1
1335  返回:nr
调用者
名称描述
perf_event_pid
perf_event_tid