Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__perf_event_sync_stat

Proto:static void __perf_event_sync_stat(struct perf_event *event, struct perf_event *next_event)

Type:void

Parameter:

TypeParameterName
struct perf_event *event
struct perf_event *next_event
3142  If Not inherit_stat Then Return
3152  If state == PERF_EVENT_STATE_ACTIVE Then read(event)
3155  perf_event_update_time(event)
3161  value = local64_read( & count)
3162  value = local64_xchg( & count, value)
3163  local64_set( & count, value)
3165  swap - swap values of @a and @b*@a: first value*@b: second value(total_time_enabled, total_time_enabled)
3166  swap - swap values of @a and @b*@a: first value*@b: second value(total_time_running, total_time_running)
3171  Callers 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.
3172  Callers 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.
Caller
NameDescribe
perf_event_sync_stat