Function report |
Source Code:kernel\sched\fair.c |
Create Date:2022-07-28 09:38:20 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:update_stats_enqueue_sleeper
Proto:static inline void update_stats_enqueue_sleeper(struct cfs_rq *cfs_rq, struct sched_entity *se)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct cfs_rq * | cfs_rq | |
struct sched_entity * | se |
925 | struct task_struct * tsk = NULL |
928 | If Not schedstat_enabled() Then Return |
931 | sleep_start = schedstat_val(sleep_start) |
932 | block_start = schedstat_val(block_start) |
934 | If entity_is_task(se) Then tsk = CFS operations on generic schedulable entities: |
937 | If sleep_start Then |
938 | delta = rq_clock(rq_of(cfs_rq)) - sleep_start |
943 | If Value for the false possibility is greater at compile time(delta > schedstat_val(sleep_max)) Then __schedstat_set(sleep_max, delta) |
946 | __schedstat_set(sleep_start, 0) |
949 | If tsk Then |
954 | If block_start Then |
955 | delta = rq_clock(rq_of(cfs_rq)) - block_start |
960 | If Value for the false possibility is greater at compile time(delta > schedstat_val(block_max)) Then __schedstat_set(block_max, delta) |
963 | __schedstat_set(block_start, 0) |
966 | If tsk Then |
967 | If in_iowait Then |
968 | __schedstat_add(iowait_sum, delta) |
985 | account_scheduler_latency(tsk, delta >> 10, 0) |
Name | Describe |
---|---|
update_stats_enqueue | Task is being enqueued - update stats: |
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 |