Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:perf_event__id_header_size

Proto:static void perf_event__id_header_size(struct perf_event *event)

Type:void

Parameter:

TypeParameterName
struct perf_event *event
1774  sample_type = sample_type
1775  size = 0
1777  If sample_type & PERF_SAMPLE_TID Then size += size of tid_entry
1780  If sample_type & PERF_SAMPLE_TIME Then size += size of time
1783  If sample_type & PERF_SAMPLE_IDENTIFIER Then size += size of id
1786  If sample_type & PERF_SAMPLE_ID Then size += size of id
1789  If sample_type & PERF_SAMPLE_STREAM_ID Then size += size of stream_id
1792  If sample_type & PERF_SAMPLE_CPU Then size += size of cpu_entry
1795  id_header_size = size
Caller
NameDescribe
perf_event_validate_size
inherit_eventInherit an event from parent task to child task.* Returns:* - valid pointer on success* - NULL for orphaned events* - IS_ERR() on error