函数逻辑报告 |
Source Code:kernel\events\core.c |
Create Date:2022-07-27 14:53:16 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:perf_rotate_context
函数原型:static bool perf_rotate_context(struct perf_cpu_context *cpuctx)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct perf_cpu_context * | cpuctx |
3849 | struct perf_event * cpu_event = NULL, * task_event = NULL |
3850 | struct perf_event_context * task_ctx = NULL |
3858 | cpu_rotate等于Set when nr_events != nr_active, except tolerant to events not* necessary to be active due to scheduling constraints, such as cgroups. |
3860 | task_rotate等于如果task_ctx则Set when nr_events != nr_active, except tolerant to events not* necessary to be active due to scheduling constraints, such as cgroups.否则0 |
3862 | 如果非cpu_rotate或task_rotate的值则返回:false |
3865 | perf_ctx_lock(cpuctx, task_ctx) |
3866 | perf_pmu_disable(pmu) |
3879 | 如果cpu_event则cpu_ctx_sched_out(cpuctx, EVENT_FLEXIBLE) |
3887 | perf_event_sched_in(cpuctx, task_ctx, 当前进程) |
3889 | perf_pmu_enable(pmu) |
3890 | perf_ctx_unlock(cpuctx, task_ctx) |
3892 | 返回:true |
名称 | 描述 |
---|---|
perf_mux_hrtimer_handler | must be called with interrupts disabled |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |