Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__perf_event_read_size

Proto:static void __perf_event_read_size(struct perf_event *event, int nr_siblings)

Type:void

Parameter:

TypeParameterName
struct perf_event *event
intnr_siblings
1706  entry = sizeof(u64)
1707  size = 0
1708  nr = 1
1710  If read_format & PERF_FORMAT_TOTAL_TIME_ENABLED Then size += sizeof(u64)
1713  If read_format & PERF_FORMAT_TOTAL_TIME_RUNNING Then size += sizeof(u64)
1716  If read_format & PERF_FORMAT_ID Then entry += sizeof(u64)
1719  If read_format & PERF_FORMAT_GROUP Then
1720  nr += nr_siblings
1721  size += sizeof(u64)
1724  size += entry * nr
1725  read_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