函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\cpuacct.c Create Date:2022-07-27 10:44:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Return total CPU usage (in nanoseconds) of a group

函数原型:static u64 __cpuusage_read(struct cgroup_subsys_state *css, enum cpuacct_stat_index index)

返回类型:u64

参数:

类型参数名称
struct cgroup_subsys_state *css
enum cpuacct_stat_indexindex
158  ca等于css_ca(css)
159  totalcpuusage等于0
162  遍历可用CPU(i)
163  totalcpuusage加等于cpuacct_cpuusage_read(ca, i, index)
165  返回:totalcpuusage
调用者
名称描述
cpuusage_user_read
cpuusage_sys_read
cpuusage_read