函数逻辑报告 |
Source Code:kernel\sched\pelt.c |
Create Date:2022-07-27 10:43:47 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Approximate:* val * y^n, where y^32 ~= 0.5 (~1 scheduling period)
函数原型:static u64 decay_load(u64 val, u64 n)
返回类型:u64
参数:
类型 | 参数 | 名称 |
---|---|---|
u64 | val | |
u64 | n |
41 | 如果此条件成立可能性小(为编译器优化)(n > LOAD_AVG_PERIOD * 63)则返回:0 |
54 | 如果此条件成立可能性小(为编译器优化)(local_n >= LOAD_AVG_PERIOD)则 |
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 | 返回:val |
名称 | 描述 |
---|---|
__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* ^ ^ ^* | | |* |<->|<----------------->|<--->|* |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |