Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:The following implement mutual exclusion of events on "exclusive" pmus* (PERF_PMU_CAP_EXCLUSIVE)

Proto:static int exclusive_event_init(struct perf_event *event)

Type:int

Parameter:

TypeParameterName
struct perf_event *event
4508  pmu = pmu
4510  If Not is_exclusive_pmu(pmu) Then Return 0
4526  If attach_state & PERF_ATTACH_TASK Then
4527  If Not atomic_inc_unless_negative( & < 0: cpu; > 0: tsk ) Then Return -EBUSY
4529  Else
4530  If Not atomic_dec_unless_positive( & < 0: cpu; > 0: tsk ) Then Return -EBUSY
4534  Return 0
Caller
NameDescribe
perf_event_allocAllocate and initialize an event structure