Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__perf_update_times

Proto:static __always_inline void __perf_update_times(struct perf_event *event, u64 now, u64 *enabled, u64 *running)

Type:void

Parameter:

TypeParameterName
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 = now - tstamp
625  enabled = total_time_enabled
626  If state >= PERF_EVENT_STATE_INACTIVE Then enabled += delta
629  running = total_time_running
630  If state >= PERF_EVENT_STATE_ACTIVE Then running += delta
Caller
NameDescribe
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