函数逻辑报告 |
Source Code:kernel\sched\fair.c |
Create Date:2022-07-27 10:39:14 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:The enqueue_task method is called before nr_running is* increased. Here we update the fair scheduling stats and* then put the task into the rbtree:
函数原型:static void enqueue_task_fair(struct rq *rq, struct task_struct *p, int flags)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct rq * | rq | |
| struct task_struct * | p | |
| int | flags |
| 5217 | util_est_enqueue( & cfs, p) |
| 5239 | 如果cfs_rq_throttled(cfs_rq)则退出 |
| 5241 | SCHED_{NORMAL,BATCH,IDLE} 自加 |
| 5242 | SCHED_IDLE 加等于idle_h_nr_running |
| 5244 | flags等于ENQUEUE_WAKEUP |
| 5249 | SCHED_{NORMAL,BATCH,IDLE} 自加 |
| 5250 | SCHED_IDLE 加等于idle_h_nr_running |
| 5252 | 如果cfs_rq_throttled(cfs_rq)则退出 |
| 5255 | update_load_avg(cfs_rq, se, UPDATE_TG) |
| 5256 | update_cfs_group(se) |
| 5259 | 如果非se则 |
| 5260 | add_nr_running(rq, 1) |
| 5275 | 如果flags按位与ENQUEUE_WAKEUP则update_overutilized_status(rq) |
| 5280 | 如果CFS bandwidth control machinery则 |
| 5295 | assert_list_leaf_cfs_rq(rq) |
| 5297 | hrtick_update(rq) |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |