函数逻辑报告 |
Source Code:kernel\events\core.c |
Create Date:2022-07-27 14:52:11 |
| Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Cross CPU call to enable a performance event
函数原型:static void __perf_event_enable(struct perf_event *event, struct perf_cpu_context *cpuctx, struct perf_event_context *ctx, void *info)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct perf_event * | event | |
| struct perf_cpu_context * | cpuctx | |
| struct perf_event_context * | ctx | |
| void * | info |
| 2781 | leader等于group_leader |
| 2784 | 如果state大于等于PERF_EVENT_STATE_INACTIVE或state小于等于PERF_EVENT_STATE_ERROR则返回 |
| 2788 | 如果is_active则ctx_sched_out(ctx, cpuctx, EVENT_TIME) |
| 2793 | 如果非is_active则返回 |
| 2796 | 如果非event_filter_match(event)则 |
| 2797 | ctx_sched_in(ctx, cpuctx, EVENT_TIME, 当前进程) |
| 2798 | 返回 |
| 2805 | 如果leader不等于event且state不等于PERF_EVENT_STATE_ACTIVE则 |
| 2806 | ctx_sched_in(ctx, cpuctx, EVENT_TIME, 当前进程) |
| 2807 | 返回 |
| 2811 | 如果task则WARN_ON_ONCE(task_ctx != ctx) |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |