函数逻辑报告 |
Source Code:kernel\events\core.c |
Create Date:2022-07-27 14:53:33 |
| Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:NMI-safe method to read a local event, that is an event that* is:* - either for the current task, or for this CPU* - does not have inherit set, for inherited task events* will not be local and we cannot read them atomically* - must not have a pmu::count
函数原型:int perf_event_read_local(struct perf_event *event, u64 *value, u64 *enabled, u64 *running)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct perf_event * | event | |
| u64 * | value | |
| u64 * | enabled | |
| u64 * | running |
| 4070 | ret等于0 |
| 4076 | local_irq_save(flags) |
| 4082 | 如果inherit则 |
| 4083 | ret等于负EOPNOTSUPP |
| 4084 | 转到:out |
| 4088 | 如果attach_state按位与PERF_ATTACH_TASK且target不等于当前进程则 |
| 4095 | 如果非attach_state按位与PERF_ATTACH_TASK的值且cpu不等于当前cpu ID()则 |
| 4115 | value等于local64_read( & count) |
| 4117 | now等于shadow_ctx_time加perf_clock() |
| 4120 | __perf_update_times(event, now, & __enabled, & __running) |
| 4126 | out : |
| 4127 | local_irq_restore(flags) |
| 4129 | 返回:ret |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |