函数逻辑报告 |
Source Code:kernel\sched\cputime.c |
Create Date:2022-07-27 10:38:11 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Adjust tick based cputime random precision against scheduler runtime* accounting
函数原型:void cputime_adjust(struct task_cputime *curr, struct prev_cputime *prev, u64 *ut, u64 *st)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct task_cputime * | curr | |
struct prev_cputime * | prev | |
u64 * | ut | |
u64 * | st |
596 | raw_spin_lock_irqsave( & lock, flags) |
597 | rtime等于sum_exec_runtime |
618 | 如果stime恒等于0则 |
623 | 如果utime恒等于0则 |
628 | stime等于Perform (stime * rtime) / total, but avoid multiplication overflow by* losing precision when the numbers are big. |
630 | update : |
655 | out : |
658 | raw_spin_unlock_irqrestore( & lock, flags) |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |