Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__perf_event_read_value

Proto:static u64 __perf_event_read_value(struct perf_event *event, u64 *enabled, u64 *running)

Type:u64

Parameter:

TypeParameterName
struct perf_event *event
u64 *enabled
u64 *running
4842  total = 0
4844  enabled = 0
4845  running = 0
4847  mutex_lock( & child_mutex)
4849  perf_event_read(event, false)
4850  total += perf_event_count(event)
4852  enabled += total_time_enabled + atomic64_read( & child_total_time_enabled)
4854  running += total_time_running + atomic64_read( & child_total_time_running)
4858  perf_event_read(child, false)
4859  total += perf_event_count(child)
4860  enabled += total_time_enabled
4861  running += total_time_running
4863  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
4865  Return total
Caller
NameDescribe
perf_event_read_value
perf_read_one