函数逻辑报告 |
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 |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__perf_read_group_add
函数原型:static int __perf_read_group_add(struct perf_event *leader, u64 read_format, u64 *values)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct perf_event * | leader | |
u64 | read_format | |
u64 * | values |
4887 | n等于1 |
4890 | ret等于perf_event_read(leader, true) |
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_enabled加atomic64_read( & child_total_time_enabled) |
4906 | 如果read_format按位与PERF_FORMAT_TOTAL_TIME_RUNNING则 |
4907 | values[n++]加等于total_time_running加atomic64_read( & child_total_time_running) |
4914 | values[n++]加等于perf_event_count(leader) |
4915 | 如果read_format按位与PERF_FORMAT_ID则values[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_ID则values[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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |