函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__perf_event_read_value

函数原型:static u64 __perf_event_read_value(struct perf_event *event, u64 *enabled, u64 *running)

返回类型:u64

参数:

类型参数名称
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_enabledatomic64_read( & child_total_time_enabled)
4854  running加等于total_time_runningatomic64_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  返回:total
调用者
名称描述
perf_event_read_value
perf_read_one