函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__accumulate_pelt_segments

函数原型:static unsigned int __accumulate_pelt_segments(u64 periods, unsigned int d1, unsigned int d3)

返回类型:unsigned int

参数:

类型参数名称
u64periods
unsigned intd1
unsigned intd3
65  c3等于d3
70  c1等于Approximate:* val * y^n, where y^32 ~= 0.5 (~1 scheduling period)
81  c2等于LOAD_AVG_MAXApproximate:* val * y^n, where y^32 ~= 0.5 (~1 scheduling period)减1024
83  返回:c1c2c3
调用者
名称描述
accumulate_sumAccumulate the three separate parts of the sum; d1 the remainder* of the last (incomplete) period, d2 the span of full periods and d3* the remainder of the (incomplete) current period.* d1 d2 d3* ^ ^ ^* | | |* |<->|<----------------->|<--->|*