Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__perf_event_read_cpu

Proto:static int __perf_event_read_cpu(struct perf_event *event, int event_cpu)

Type:int

Parameter:

TypeParameterName
struct perf_event *event
intevent_cpu
3980  If group_caps & PERF_EV_CAP_READ_ACTIVE_PKG Then
3981  local_cpu = smp_processor_id()
3983  event_pkg = topology_physical_package_id(event_cpu)
3984  local_pkg = topology_physical_package_id(local_cpu)
3986  If event_pkg == local_pkg Then Return local_cpu
3990  Return event_cpu
Caller
NameDescribe
perf_event_read