Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__perf_event_header__init_id

Proto:static void __perf_event_header__init_id(struct perf_event_header *header, struct perf_sample_data *data, struct perf_event *event)

Type:void

Parameter:

TypeParameterName
struct perf_event_header *header
struct perf_sample_data *data
struct perf_event *event
6393  sample_type = sample_type
6395  type = sample_type
6396  size += id_header_size
6398  If sample_type & PERF_SAMPLE_TID Then
6400  pid = perf_event_pid(event, current process)
6401  tid = perf_event_tid(event, current process)
6404  If sample_type & PERF_SAMPLE_TIME Then time = perf_event_clock(event)
6407  If sample_type & (PERF_SAMPLE_ID | PERF_SAMPLE_IDENTIFIER) Then id = If we inherit events we want to return the parent event id* to userspace.
6410  If sample_type & PERF_SAMPLE_STREAM_ID Then stream_id = id
6413  If sample_type & PERF_SAMPLE_CPU Then
6414  cpu = These macros fold the SMP functionality into a single CPU system()
6415  reserved = 0
Caller
NameDescribe
perf_event_header__init_id
perf_prepare_sample