Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-28 13:31:53
Last Modify:2022-05-20 07:50:19 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:perf_event_pid_type

Proto:static u32 perf_event_pid_type(struct perf_event *event, struct task_struct *p, enum pid_type type)

Type:u32

Parameter:

TypeParameterName
struct perf_event *event
struct task_struct *p
enum pid_typetype
1328  If parent Then event = parent
1331  nr = __task_pid_nr_ns(p, type, ns)
1333  If Not nr && Not 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. Then nr = -1
1335  Return nr
Caller
NameDescribe
perf_event_pid
perf_event_tid