Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Return total CPU usage (in nanoseconds) of a group

Proto:static u64 __cpuusage_read(struct cgroup_subsys_state *css, enum cpuacct_stat_index index)

Type:u64

Parameter:

TypeParameterName
struct cgroup_subsys_state *css
enum cpuacct_stat_indexindex
158  ca = css_ca(css)
159  totalcpuusage = 0
162  for_each_possible_cpu(i)
163  totalcpuusage += cpuacct_cpuusage_read(ca, i, index)
165  Return totalcpuusage
Caller
NameDescribe
cpuusage_user_read
cpuusage_sys_read
cpuusage_read