函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\fair.c Create Date:2022-07-27 10:38:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:update_stats_wait_start

函数原型:static inline void update_stats_wait_start(struct cfs_rq *cfs_rq, struct sched_entity *se)

返回类型:void

参数:

类型参数名称
struct cfs_rq *cfs_rq
struct sched_entity *se
877  如果非schedstat_enabled()则返回
880  wait_start等于rq_clock(rq_of(cfs_rq))
881  prev_wait_start等于schedstat_val(wait_start)
883  如果entity_is_task(se)且task_on_rq_migrating(CFS operations on generic schedulable entities:)且此条件成立可能性大(为编译器优化)(wait_start > prev_wait_start)则wait_start减等于prev_wait_start
887  __schedstat_set(wait_start, wait_start)
调用者
名称描述
update_stats_enqueueTask is being enqueued - update stats:
put_prev_entity