函数逻辑报告 |
Source Code:kernel\events\core.c |
Create Date:2022-07-27 14:52:57 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:perf_event_context_sched_in
函数原型:static void perf_event_context_sched_in(struct perf_event_context *ctx, struct task_struct *task)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct perf_event_context * | ctx | |
struct task_struct * | task |
3563 | cpuctx等于__get_cpu_context(ctx) |
3567 | perf_ctx_lock(cpuctx, ctx) |
3575 | perf_pmu_disable(pmu) |
3584 | 如果非RB_EMPTY_ROOT( & tree)则cpu_ctx_sched_out(cpuctx, EVENT_FLEXIBLE) |
3586 | perf_event_sched_in(cpuctx, ctx, task) |
3587 | perf_pmu_enable(pmu) |
3589 | unlock : |
3590 | perf_ctx_unlock(cpuctx, ctx) |
名称 | 描述 |
---|---|
__perf_event_task_sched_in | Called from scheduler to add the events of the current task* with interrupts disabled.* We restore the event value and then enable it.* This does not protect us against NMI, but enable()* sets the enabled bit in the control field of event _before_ |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |