函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__perf_read_group_add

函数原型:static int __perf_read_group_add(struct perf_event *leader, u64 read_format, u64 *values)

返回类型:int

参数:

类型参数名称
struct perf_event *leader
u64read_format
u64 *values
4884  ctx等于ctx
4887  n等于1
4890  ret等于perf_event_read(leader, true)
4891  如果ret则返回:ret
4894  raw_spin_lock_irqsave( & Protect the states of the events in the list,* nr_active, and the list:, flags)
4901  如果read_format按位与PERF_FORMAT_TOTAL_TIME_ENABLED
4902  values[n++]加等于total_time_enabledatomic64_read( & child_total_time_enabled)
4906  如果read_format按位与PERF_FORMAT_TOTAL_TIME_RUNNING
4907  values[n++]加等于total_time_runningatomic64_read( & child_total_time_running)
4914  values[n++]加等于perf_event_count(leader)
4915  如果read_format按位与PERF_FORMAT_IDvalues[n++]等于If we inherit events we want to return the parent event id* to userspace.
4919  values[n++]加等于perf_event_count(sub)
4920  如果read_format按位与PERF_FORMAT_IDvalues[n++]等于If we inherit events we want to return the parent event id* to userspace.
4924  raw_spin_unlock_irqrestore( & Protect the states of the events in the list,* nr_active, and the list:, flags)
4925  返回:0
调用者
名称描述
perf_read_group