Lines Matching refs:cpustat
28 struct kernel_cpustat __percpu *cpustat; member
49 .cpustat = &kernel_cpustat,
70 ca->cpustat = alloc_percpu(struct kernel_cpustat); in cpuacct_css_alloc()
71 if (!ca->cpustat) in cpuacct_css_alloc()
89 free_percpu(ca->cpustat); in cpuacct_css_free()
98 u64 *cpustat = per_cpu_ptr(ca->cpustat, cpu)->cpustat; in cpuacct_cpuusage_read() local
117 data = cpustat[CPUTIME_USER] + cpustat[CPUTIME_NICE]; in cpuacct_cpuusage_read()
120 data = cpustat[CPUTIME_SYSTEM] + cpustat[CPUTIME_IRQ] + in cpuacct_cpuusage_read()
121 cpustat[CPUTIME_SOFTIRQ]; in cpuacct_cpuusage_read()
138 u64 *cpustat = per_cpu_ptr(ca->cpustat, cpu)->cpustat; in cpuacct_cpuusage_write() local
151 cpustat[CPUTIME_USER] = cpustat[CPUTIME_NICE] = 0; in cpuacct_cpuusage_write()
152 cpustat[CPUTIME_SYSTEM] = cpustat[CPUTIME_IRQ] = 0; in cpuacct_cpuusage_write()
153 cpustat[CPUTIME_SOFTIRQ] = 0; in cpuacct_cpuusage_write()
270 u64 *cpustat = per_cpu_ptr(ca->cpustat, cpu)->cpustat; in cpuacct_stats_show() local
272 cputime.utime += cpustat[CPUTIME_USER]; in cpuacct_stats_show()
273 cputime.utime += cpustat[CPUTIME_NICE]; in cpuacct_stats_show()
274 cputime.stime += cpustat[CPUTIME_SYSTEM]; in cpuacct_stats_show()
275 cputime.stime += cpustat[CPUTIME_IRQ]; in cpuacct_stats_show()
276 cputime.stime += cpustat[CPUTIME_SOFTIRQ]; in cpuacct_stats_show()
355 __this_cpu_add(ca->cpustat->cpustat[index], val); in cpuacct_account_field()