函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-27 14:51:55
Last Modify:2022-05-20 07:50:19 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Work out whether we can put this event group on the CPU now.

函数原型:static int group_can_go_on(struct perf_event *event, struct perf_cpu_context *cpuctx, int can_add_hw)

返回类型:int

参数:

类型参数名称
struct perf_event *event
struct perf_cpu_context *cpuctx
intcan_add_hw
2469  如果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.则返回:1
2475  如果exclusive则返回:0
2481  如果exclusiveactive_oncpu则返回:0
2487  返回:can_add_hw
调用者
名称描述
pinned_sched_in
flexible_sched_in