Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:perf_event_index

Proto:static int perf_event_index(struct perf_event *event)

Type:int

Parameter:

TypeParameterName
struct perf_event *event
5412  If state & PERF_HES_STOPPED Then Return 0
5415  If state != PERF_EVENT_STATE_ACTIVE Then Return 0
5418  Return event_idx(event)
Caller
NameDescribe
perf_event_update_userpageCallers need to ensure there can be no nesting of this function, otherwise* the seqlock logic goes bad. We can not serialize this because the arch* code calls this from NMI context.