Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
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
940  If delta < 0 Then delta = 0
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)
947  __schedstat_add(sum_sleep_runtime, delta)
949  If tsk Then
954  If block_start Then
955  delta = rq_clock(rq_of(cfs_rq)) - block_start
957  If delta < 0 Then delta = 0
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)
964  __schedstat_add(sum_sleep_runtime, delta)
966  If tsk Then
967  If in_iowait Then
Caller
NameDescribe
update_stats_enqueueTask is being enqueued - update stats: