函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-27 14:52:33
Last Modify:2022-05-20 07:50:19 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__perf_event_sync_stat

函数原型:static void __perf_event_sync_stat(struct perf_event *event, struct perf_event *next_event)

返回类型:void

参数:

类型参数名称
struct perf_event *event
struct perf_event *next_event
3142  如果非inherit_stat则返回
3152  如果state恒等于PERF_EVENT_STATE_ACTIVEread(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.
调用者
名称描述
perf_event_sync_stat