函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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
注解内核,赢得工具下载SCCTEnglish

函数名称:Account for idle time.*@cputime: the CPU time spent in idle wait

函数原型:void account_idle_time(u64 cputime)

返回类型:void

参数:

类型参数名称
u64cputime
220  u64 * cpustat = ({
220  0
220  ({
220  循环
220  const void * __vpp_verify = NULL
220  当0循环
220  })
220  })->cpustat
221  rq等于this_rq()
223  如果atomic_read( & nr_iowait)大于0则cpustat[CPUTIME_IOWAIT]加等于cputime
225  否则cpustat[CPUTIME_IDLE]加等于cputime
调用者
名称描述
account_process_tick更新当前进程的内核态和用户态占用率
account_idle_ticksAccount multiple ticks of idle time.*@ticks: number of stolen ticks