函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:PSI growth tracking window update and growth calculation routine.* This approximates a sliding tracking window by interpolating* partially elapsed windows using historical growth data from the* previous intervals

函数原型:static u64 window_update(struct psi_window *win, u64 now, u64 value)

返回类型:u64

参数:

类型参数名称
struct psi_window *win
u64now
u64value
470  elapsed等于nowstart_time
471  growth等于valuestart_value
479  如果elapsed大于sizeTrigger tracking window manupulations
481  否则
484  remaining等于sizeelapsed
485  growth加等于div64_u64 - unsigned 64bit divide with 64bit divisor*@dividend: 64bit dividend*@divisor: 64bit divisor* This implementation is a modified version of the algorithm proposed* by the book 'Hacker's Delight'. The original source and full proof
488  返回:growth
调用者
名称描述
update_triggers