Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Disable an event

Proto:static void _perf_event_disable(struct perf_event *event)

Type:void

Parameter:

TypeParameterName
struct perf_event *event
2269  ctx = ctx
2271  raw_spin_lock_irq( & Protect the states of the events in the list,* nr_active, and the list:)
2272  If state <= PERF_EVENT_STATE_OFF Then
2273  raw_spin_unlock_irq( & Protect the states of the events in the list,* nr_active, and the list:)
2274  Return
2276  raw_spin_unlock_irq( & Protect the states of the events in the list,* nr_active, and the list:)
2278  event_function_call(event, Cross CPU call to disable a performance event, NULL)
Caller
NameDescribe
perf_event_disableStrictly speaking kernel users cannot create groups and therefore this* interface does not need the perf_event_ctx_lock() magic.
perf_event_modify_breakpoint
perf_event_pauseAssume it's not an event with inherit set.