Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__perf_event_header_size

Proto:static void __perf_event_header_size(struct perf_event *event, u64 sample_type)

Type:void

Parameter:

TypeParameterName
struct perf_event *event
u64sample_type
1731  size = 0
1733  If sample_type & PERF_SAMPLE_IP Then size += size of ip
1736  If sample_type & PERF_SAMPLE_ADDR Then size += size of addr
1739  If sample_type & PERF_SAMPLE_PERIOD Then size += size of period
1742  If sample_type & PERF_SAMPLE_WEIGHT Then size += size of weight
1745  If sample_type & PERF_SAMPLE_READ Then size += read_size
1748  If sample_type & PERF_SAMPLE_DATA_SRC Then size += size of val
1751  If sample_type & PERF_SAMPLE_TRANSACTION Then size += size of txn
1754  If sample_type & PERF_SAMPLE_PHYS_ADDR Then size += size of phys_addr
1757  header_size = size
Caller
NameDescribe
perf_event__header_sizeCalled at perf_event creation and when events are attached/detached from a* group.
perf_event_validate_size