Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\cpuset.c Create Date:2022-07-28 11:16:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Internal meter update - process cnt events and update value

Proto:static void fmeter_update(struct fmeter *fmp)

Type:void

Parameter:

TypeParameterName
struct fmeter *fmp
2064  now = ktime_get_seconds - Get the seconds portion of CLOCK_MONOTONIC* Returns the seconds portion of CLOCK_MONOTONIC with a single non* serialized read. tk->ktime_sec is of type 'unsigned long' so this* works on both 32 and 64 bit systems
2065  ticks = now - clock (secs) when val computed
2067  If ticks == 0 Then Return
2070  ticks = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(useless computing more ticks than this , ticks)
2071  When ticks-- > 0 cycle
2072  most recent output value = coefficient for half-life of 10 secs * most recent output value / aux fixed point scale
2073  clock (secs) when val computed = now
2075  most recent output value += (aux fixed point scale - coefficient for half-life of 10 secs ) * unprocessed events count / aux fixed point scale
2076  unprocessed events count = 0
Caller
NameDescribe
fmeter_markeventProcess any previous ticks, then bump cnt by one (times scale).
fmeter_getrateProcess any previous ticks, then return current value.