Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
struct cgroup_subsys_state * | css | |
enum cpuacct_stat_index | index |
159 | totalcpuusage = 0 |
162 | for_each_possible_cpu(i) |
163 | totalcpuusage += cpuacct_cpuusage_read(ca, i, index) |
165 | Return totalcpuusage |
Name | Describe |
---|---|
cpuusage_user_read | |
cpuusage_sys_read | |
cpuusage_read |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |