Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\fair.c Create Date:2022-07-28 09:38:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:update_stats_wait_end

Proto:static inline void update_stats_wait_end(struct cfs_rq *cfs_rq, struct sched_entity *se)

Type:void

Parameter:

TypeParameterName
struct cfs_rq *cfs_rq
struct sched_entity *se
896  If Not schedstat_enabled() Then Return
899  delta = rq_clock(rq_of(cfs_rq)) - schedstat_val(wait_start)
901  If entity_is_task(se) Then
902  p = CFS operations on generic schedulable entities:
903  If task_on_rq_migrating(p) Then
910  Return
912  Tracepoint for accounting wait time (time the task is runnable* but not actually running due to scheduler contention).
915  __schedstat_set(wait_max, max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(schedstat_val(wait_max), delta))
917  __schedstat_inc(wait_count)
918  __schedstat_add(wait_sum, delta)
919  __schedstat_set(wait_start, 0)
Caller
NameDescribe
update_stats_dequeue
set_next_entity