Lines Matching refs:cpustat
33 struct kernel_cpustat __percpu *cpustat; member
54 .cpustat = &kernel_cpustat,
75 ca->cpustat = alloc_percpu(struct kernel_cpustat); in cpuacct_css_alloc()
76 if (!ca->cpustat) in cpuacct_css_alloc()
94 free_percpu(ca->cpustat); in cpuacct_css_free()
279 u64 *cpustat = per_cpu_ptr(ca->cpustat, cpu)->cpustat; in cpuacct_stats_show() local
281 val[CPUACCT_STAT_USER] += cpustat[CPUTIME_USER]; in cpuacct_stats_show()
282 val[CPUACCT_STAT_USER] += cpustat[CPUTIME_NICE]; in cpuacct_stats_show()
283 val[CPUACCT_STAT_SYSTEM] += cpustat[CPUTIME_SYSTEM]; in cpuacct_stats_show()
284 val[CPUACCT_STAT_SYSTEM] += cpustat[CPUTIME_IRQ]; in cpuacct_stats_show()
285 val[CPUACCT_STAT_SYSTEM] += cpustat[CPUTIME_SOFTIRQ]; in cpuacct_stats_show()
367 __this_cpu_add(ca->cpustat->cpustat[index], val); in cpuacct_account_field()