函数逻辑报告 |
Source Code:kernel\sched\fair.c |
Create Date:2022-07-27 10:38:35 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:delta_exec * weight / lw.weight* OR* (delta_exec * (weight * lw->inv_weight)) >> WMULT_SHIFT* Either weight := NICE_0_LOAD and lw \e sched_prio_to_wmult[], in which case* we're guaranteed shift stays positive because inv_weight is guaranteed to
函数原型:static u64 __calc_delta(u64 delta_exec, unsigned long weight, struct load_weight *lw)
返回类型:u64
参数:
类型 | 参数 | 名称 |
---|---|---|
u64 | delta_exec | |
unsigned long | weight | |
struct load_weight * | lw |
220 | fact等于scale_load_down(weight) |
221 | shift等于WMULT_SHIFT |
223 | __update_inv_weight(lw) |
225 | 如果此条件成立可能性小(为编译器优化)(fact >> 32)则 |
232 | fact等于mul_u32_u32(fact, inv_weight) |
239 | 返回:mul_u64_u32_shr(delta_exec, fact, shift) |
名称 | 描述 |
---|---|
calc_delta_fair | delta /= w |
sched_slice | 分配给进程的运行时间 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |