Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cpuacct_all_seq_show

Proto:static int cpuacct_all_seq_show(struct seq_file *m, void *V)

Type:int

Parameter:

TypeParameterName
struct seq_file *m
void *V
235  ca = css_ca(seq_css(m))
239  seq_puts(m, "cpu")
240  When index < CPUACCT_STAT_NSTATS cycle seq_printf(m, " %s", cpuacct_stat_desc[index])
242  seq_puts(m, "\n")
244  for_each_possible_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  Return 0