Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\cputime.c Create Date:2022-07-28 09:37:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Account for idle time.*@cputime: the CPU time spent in idle wait

Proto:void account_idle_time(u64 cputime)

Type:void

Parameter:

TypeParameterName
u64cputime
220  u64 * cpustat = ({
220  0
220  ({
220  Do
220  const void * __vpp_verify = NULL
220  When 0 cycle
220  })
220  })->cpustat
221  rq = this_rq()
223  If atomic_read( & nr_iowait) > 0 Then cpustat[CPUTIME_IOWAIT] += cputime
225  Else cpustat[CPUTIME_IDLE] += cputime
Caller
NameDescribe
account_process_tickAccount a single tick of CPU time.*@p: the process that the CPU time gets accounted to*@user_tick: indicates if the tick is a user or a system tick
account_idle_ticksAccount multiple ticks of idle time.*@ticks: number of stolen ticks