函数逻辑报告 | 
Source Code:kernel\sched\cputime.c | 
Create Date:2022-07-27 10:38:03 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Account for idle time.*@cputime: the CPU time spent in idle wait
函数原型:void account_idle_time(u64 cputime)
返回类型:void
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| u64 | cputime | 
| 220 | u64 * cpustat = ({ | 
| 220 | })->cpustat | 
| 223 | 如果atomic_read( & nr_iowait)大于0则cpustat[CPUTIME_IOWAIT]加等于cputime | 
| 225 | 否则cpustat[CPUTIME_IDLE]加等于cputime | 
| 名称 | 描述 | 
|---|---|
| account_process_tick | 更新当前进程的内核态和用户态占用率 | 
| account_idle_ticks | Account multiple ticks of idle time.*@ticks: number of stolen ticks | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |