Function report | 
Source Code:kernel\sched\fair.c | 
Create Date:2022-07-28 09:38:14 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Update the current task's runtime statistics.
Proto:static void update_curr(struct cfs_rq *cfs_rq)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct cfs_rq * | cfs_rq | 
| 834 | curr = 'curr' points to currently running entity on this cfs_rq.* It is set to NULL otherwise (i.e when none are currently running). | 
| 835 | now = rq_clock_task(rq_of(cfs_rq)) | 
| 838 | If Value for the false possibility is greater at compile time(!curr) Then Return | 
| 841 | delta_exec = now - exec_start | 
| 842 | If Value for the false possibility is greater at compile time((s64)delta_exec <= 0) Then Return | 
| 845 | exec_start = now | 
| 847 | schedstat_set(exec_max, max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(delta_exec, exec_max)) | 
| 850 | sum_exec_runtime += delta_exec | 
| 853 | vruntime += delta /= w | 
| 856 | If entity_is_task(curr) Then | 
| Name | Describe | 
|---|---|
| update_curr_fair | |
| reweight_entity | |
| enqueue_entity | MIGRATION* dequeue* update_curr()* update_min_vruntime()* vruntime -= min_vruntime* enqueue* update_curr()* update_min_vruntime()* vruntime += min_vruntime* this way the vruntime transition between RQs is done when both* min_vruntime are up-to-date | 
| dequeue_entity | |
| put_prev_entity | |
| entity_tick | |
| check_preempt_wakeup | Preempt the current task with a newly woken task if needed: | 
| yield_task_fair | sched_yield() is very simple* The magic of dealing with the ->skip buddy is in pick_next_entity. | 
| task_fork_fair | alled on fork with the child task as argument from the parent's context* - child not yet on the tasklist* - preemption disabled | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |