函数逻辑报告 |
Source Code:kernel\events\core.c |
Create Date:2022-07-27 14:52:54 |
| Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:ctx_sched_in
函数原型:static void ctx_sched_in(struct perf_event_context *ctx, struct perf_cpu_context *cpuctx, enum event_type_t event_type, struct task_struct *task)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct perf_event_context * | ctx | |
| struct perf_cpu_context * | cpuctx | |
| enum event_type_t | event_type | |
| struct task_struct * | task |
| 3515 | lockdep_assert_held( & Protect the states of the events in the list,* nr_active, and the list:) |
| 3517 | 如果此条件成立可能性大(为编译器优化)(!nr_events)则返回 |
| 3520 | is_active或等于event_type按位或EVENT_TIME |
| 3521 | 如果task则 |
| 3530 | 如果is_active按位与EVENT_TIME则 |
| 3541 | 如果is_active按位与EVENT_PINNED则ctx_pinned_sched_in(ctx, cpuctx) |
| 3545 | 如果is_active按位与EVENT_FLEXIBLE则ctx_flexible_sched_in(ctx, cpuctx) |
| 名称 | 描述 |
|---|---|
| perf_event_sched_in | |
| __perf_event_enable | Cross CPU call to enable a performance event |
| cpu_ctx_sched_in | |
| perf_event_enable_on_exec | Enable all of a task's events that have been marked enable-on-exec.* This expects task == current. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |