函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\sched\loadavg.h Create Date:2022-07-27 06:42:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:a1 = a0 * e + a * (1 - e)

函数原型:static inline unsigned long calc_load(unsigned long load, unsigned long exp, unsigned long active)

返回类型:unsigned long

参数:

类型参数名称
unsigned longload
unsigned longexp
unsigned longactive
33  newload等于loadexpactive1.0 as fixed-point exp的差
34  如果active大于等于loadnewload加等于1.0 as fixed-point 减1
37  返回:newload1.0 as fixed-point
调用者
名称描述
calc_load_na1 = a0 * e + a * (1 - e)* a2 = a1 * e + a * (1 - e)* = (a0 * e + a * (1 - e)) * e + a * (1 - e)* = a0 * e^2 + a * (1 - e) * (1 + e)* a3 = a2 * e + a * (1 - e)* = (a0 * e^2 + a * (1 - e) * (1 + e)) * e + a * (1 - e)* = a0 * e^3 + a * (1 - e) * (1 + e +
calc_global_loadalc_load - update the avenrun load estimates 10 ticks after the* CPUs have updated calc_load_tasks.* Called from the global timer code.
calc_avgs
iolat_update_total_lat_avg