Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static u64 window_update(struct psi_window *win, u64 now, u64 value)

Type:u64

Parameter:

TypeParameterName
struct psi_window *win
u64now
u64value
470  elapsed = now - start_time
471  growth = value - start_value
479  If elapsed > size Then Trigger tracking window manupulations
481  Else
484  remaining = size - elapsed
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  Return growth
Caller
NameDescribe
update_triggers