Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Enable an event

Proto:static void _perf_event_enable(struct perf_event *event)

Type:void

Parameter:

TypeParameterName
struct perf_event *event
2828  ctx = ctx
2830  raw_spin_lock_irq( & Protect the states of the events in the list,* nr_active, and the list:)
2831  If state >= PERF_EVENT_STATE_INACTIVE || state < PERF_EVENT_STATE_ERROR Then
2833  raw_spin_unlock_irq( & Protect the states of the events in the list,* nr_active, and the list:)
2834  Return
2844  If state == PERF_EVENT_STATE_ERROR Then state = PERF_EVENT_STATE_OFF
2846  raw_spin_unlock_irq( & Protect the states of the events in the list,* nr_active, and the list:)
2848  event_function_call(event, Cross CPU call to enable a performance event, NULL)
Caller
NameDescribe
perf_event_enableSee perf_event_disable();
_perf_event_refresh
perf_event_modify_breakpoint