函数逻辑报告 |
Source Code:kernel\events\core.c |
Create Date:2022-07-27 14:53:38 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:perf_event_read
函数原型:static int perf_event_read(struct perf_event *event, bool group)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct perf_event * | event | |
bool | group |
4135 | ret等于0 |
4141 | again : |
4142 | 如果state恒等于PERF_EVENT_STATE_ACTIVE则 |
4180 | 否则如果state恒等于PERF_EVENT_STATE_INACTIVE则 |
4184 | raw_spin_lock_irqsave( & Protect the states of the events in the list,* nr_active, and the list:, flags) |
4186 | 如果state不等于PERF_EVENT_STATE_INACTIVE则 |
4187 | raw_spin_unlock_irqrestore( & Protect the states of the events in the list,* nr_active, and the list:, flags) |
4188 | 转到:again |
4195 | 如果is_active按位与EVENT_TIME则 |
4196 | update_context_time(ctx) |
4200 | perf_event_update_time(event) |
4201 | 如果group则perf_event_update_sibling_time(event) |
4206 | 返回:ret |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |