函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cpuacct_all_seq_show

函数原型:static int cpuacct_all_seq_show(struct seq_file *m, void *V)

返回类型:int

参数:

类型参数名称
struct seq_file *m
void *V
235  ca等于css_ca(seq_css(m))
239  seq_puts(m, "cpu")
240 index小于CPUACCT_STAT_NSTATS循环seq_printf(m, " %s", cpuacct_stat_desc[index])
242  seq_puts(m, "\n")
244  遍历可用CPU(cpu)
245  cpuusage等于per_cpu_ptr(cpuusage holds pointer to a u64-type object on every CPU , cpu)
247  seq_printf(m, "%d", cpu)
258  seq_printf(m, " %llu", usages[index])
264  seq_puts(m, "\n")
266  返回:0