函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Internal meter update - process cnt events and update value

函数原型:static void fmeter_update(struct fmeter *fmp)

返回类型:void

参数:

类型参数名称
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等于nowclock (secs) when val computed
2067  如果ticks恒等于0则返回
2070  ticks等于两数取小(useless computing more ticks than this , ticks)
2071 ticks自减大于0循环
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
调用者
名称描述
fmeter_markeventProcess any previous ticks, then bump cnt by one (times scale).
fmeter_getrateProcess any previous ticks, then return current value.