Function report |
Source Code:kernel\sched\pelt.c |
Create Date:2022-07-28 09:43:18 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Approximate:* val * y^n, where y^32 ~= 0.5 (~1 scheduling period)
Proto:static u64 decay_load(u64 val, u64 n)
Type:u64
Parameter:
| Type | Parameter | Name |
|---|---|---|
| u64 | val | |
| u64 | n |
| 41 | If Value for the false possibility is greater at compile time(n > LOAD_AVG_PERIOD * 63) Then Return 0 |
| 55 | val >>= local_n / LOAD_AVG_PERIOD |
| 56 | local_n %= LOAD_AVG_PERIOD |
| 59 | val = mul_u64_u32_shr(val, runnable_avg_yN_inv[local_n], 32) |
| 60 | Return val |
| Name | Describe |
|---|---|
| __accumulate_pelt_segments | |
| accumulate_sum | Accumulate the three separate parts of the sum; d1 the remainder* of the last (incomplete) period, d2 the span of full periods and d3* the remainder of the (incomplete) current period.* d1 d2 d3* ^ ^ ^* | | |* |<->|<----------------->|<--->|* |
| 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 |