函数逻辑报告 |
Source Code:kernel\sched\pelt.c |
Create Date:2022-07-27 10:43:49 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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* ^ ^ ^* | | |* |<->|<----------------->|<--->|*
函数原型:static __always_inline unsigned int accumulate_sum(u64 delta, struct sched_avg *sa, unsigned long load, unsigned long runnable, int running)
返回类型:unsigned int
参数:
类型 | 参数 | 名称 |
---|---|---|
u64 | delta | |
struct sched_avg * | sa | |
unsigned long | load | |
unsigned long | runnable | |
int | running |
116 | delta加等于period_contrib |
122 | 如果periods则 |
131 | delta取模等于1024 |
132 | contrib等于__accumulate_pelt_segments(periods, 1024 - period_contrib, delta) |
135 | period_contrib等于delta |
139 | 如果runnable则runnable_load_sum加等于runnable乘contrib |
144 | 返回:periods |
名称 | 描述 |
---|---|
___update_load_sum | We can represent the historical contribution to runnable average as the* coefficients of a geometric series. To do this we sub-divide our runnable* history into segments of approximately 1ms (1024us); label the segment that |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |