Function report |
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 activity | Download SCCT | Chinese |
Name:Internal meter update - process cnt events and update value
Proto:static void fmeter_update(struct fmeter *fmp)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct fmeter * | fmp |
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) |
2072 | most recent output value = coefficient for half-life of 10 secs * most recent output value / aux fixed point scale |
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 |
Name | Describe |
---|---|
fmeter_markevent | Process any previous ticks, then bump cnt by one (times scale). |
fmeter_getrate | Process any previous ticks, then return current value. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |