函数逻辑报告 |
Source Code:kernel\events\core.c |
Create Date:2022-07-27 14:52:59 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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_
函数原型:void __perf_event_task_sched_in(struct task_struct *prev, struct task_struct *task)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct task_struct * | prev | |
struct task_struct * | task |
3617 | 如果atomic_read(this_cpu_ptr( & perf_cgroup_events))则perf_cgroup_sched_in(prev, task) |
3621 | ctx等于perf_event_ctxp[ctxn] |
3622 | 如果此条件成立可能性大(为编译器优化)(!ctx)则继续下一循环 |
3625 | perf_event_context_sched_in(ctx, task) |
3628 | 如果atomic_read( & nr_switch_events)则perf_event_switch(task, prev, true) |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |