函数逻辑报告 |
Source Code:kernel\events\core.c |
Create Date:2022-07-27 14:52:29 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:ctx_sched_out
函数原型:static void ctx_sched_out(struct perf_event_context *ctx, struct perf_cpu_context *cpuctx, enum event_type_t event_type)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct perf_event_context * | ctx | |
struct perf_cpu_context * | cpuctx | |
enum event_type_t | event_type |
3037 | lockdep_assert_held( & Protect the states of the events in the list,* nr_active, and the list:) |
3039 | 如果此条件成立可能性大(为编译器优化)(!nr_events)则 |
3049 | is_active与等于event_type的反 |
3053 | 如果task则 |
3054 | WARN_ON_ONCE(task_ctx != ctx) |
3069 | 如果is_active按位与EVENT_TIME则 |
3071 | update_context_time(ctx) |
3086 | perf_pmu_disable(pmu) |
3087 | 如果is_active按位与EVENT_PINNED则 |
3089 | group_sched_out(event, cpuctx, ctx) |
3092 | 如果is_active按位与EVENT_FLEXIBLE则 |
3094 | group_sched_out(event, cpuctx, ctx) |
3096 | perf_pmu_enable(pmu) |
名称 | 描述 |
---|---|
task_ctx_sched_out | |
__perf_install_in_context | Cross CPU call to install and enable a performance event* Very similar to remote_function() + event_function() but cannot assume that* things like ctx->is_active and cpuctx->task_ctx are set. |
__perf_event_enable | Cross CPU call to enable a performance event |
cpu_ctx_sched_out | |
perf_rotate_context | |
perf_event_enable_on_exec | Enable all of a task's events that have been marked enable-on-exec.* This expects task == current. |
__perf_event_exit_context |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |