函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__perf_update_times

函数原型:static __always_inline void __perf_update_times(struct perf_event *event, u64 now, u64 *enabled, u64 *running)

返回类型:void

参数:

类型参数名称
struct perf_event *event
u64now
u64 *enabled
u64 *running
622  state等于State based event timekeeping...* The basic idea is to use event->state to determine which (if any) time* fields to increment with the current delta. This means we only need to* update timestamps when we change state or when they are explicitly requested
623  delta等于nowtstamp
625  enabled等于total_time_enabled
626  如果state大于等于PERF_EVENT_STATE_INACTIVEenabled加等于delta
629  running等于total_time_running
630  如果state大于等于PERF_EVENT_STATE_ACTIVErunning加等于delta
调用者
名称描述
perf_event_update_time
perf_event_read_localNMI-safe method to read a local event, that is an event that* is:* - either for the current task, or for this CPU* - does not have inherit set, for inherited task events* will not be local and we cannot read them atomically* - must not have a pmu::count
calc_timer_values