Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Work out whether we can put this event group on the CPU now.

Proto:static int group_can_go_on(struct perf_event *event, struct perf_cpu_context *cpuctx, int can_add_hw)

Type:int

Parameter:

TypeParameterName
struct perf_event *event
struct perf_cpu_context *cpuctx
intcan_add_hw
2469  If group_caps & Event capabilities. For event_caps and groups caps.* PERF_EV_CAP_SOFTWARE: Is a software event.* PERF_EV_CAP_READ_ACTIVE_PKG: A CPU event (or cgroup event) that can be read* from any CPU in the package where it is active. Then Return 1
2475  If exclusive Then Return 0
2481  If exclusive && active_oncpu Then Return 0
2487  Return can_add_hw
Caller
NameDescribe
pinned_sched_in
flexible_sched_in