函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:The following implement mutual exclusion of events on "exclusive" pmus* (PERF_PMU_CAP_EXCLUSIVE)

函数原型:static int exclusive_event_init(struct perf_event *event)

返回类型:int

参数:

类型参数名称
struct perf_event *event
4508  pmu等于pmu
4510  如果非is_exclusive_pmu(pmu)则返回:0
4526  如果attach_state按位与PERF_ATTACH_TASK
4527  如果非atomic_inc_unless_negative( & < 0: cpu; > 0: tsk )则返回:负EBUSY
4529  否则
4530  如果非atomic_dec_unless_positive( & < 0: cpu; > 0: tsk )则返回:负EBUSY
4534  返回:0
调用者
名称描述
perf_event_allocAllocate and initialize an event structure