Home
last modified time | relevance | path

Searched refs:cpustat (Results 1 – 4 of 4) sorted by relevance

/kernel/sched/
Dcpuacct.c28 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
[all …]
Dcputime.c43 u64 *cpustat = kcpustat_this_cpu->cpustat; in irqtime_account_delta() local
46 cpustat[idx] += delta; in irqtime_account_delta()
120 __this_cpu_add(kernel_cpustat.cpustat[index], tmp); in task_group_account_field()
157 u64 *cpustat = kcpustat_this_cpu->cpustat; in account_guest_time() local
167 cpustat[CPUTIME_GUEST_NICE] += cputime; in account_guest_time()
170 cpustat[CPUTIME_GUEST] += cputime; in account_guest_time()
228 u64 *cpustat = kcpustat_this_cpu->cpustat; in account_steal_time() local
230 cpustat[CPUTIME_STEAL] += cputime; in account_steal_time()
239 u64 *cpustat = kcpustat_this_cpu->cpustat; in account_idle_time() local
243 cpustat[CPUTIME_IOWAIT] += cputime; in account_idle_time()
[all …]
/kernel/cgroup/
Drstat.c497 u64 *cpustat = kcpustat.cpustat; in root_cgroup_cputime() local
503 user += cpustat[CPUTIME_USER]; in root_cgroup_cputime()
504 user += cpustat[CPUTIME_NICE]; in root_cgroup_cputime()
507 sys += cpustat[CPUTIME_SYSTEM]; in root_cgroup_cputime()
508 sys += cpustat[CPUTIME_IRQ]; in root_cgroup_cputime()
509 sys += cpustat[CPUTIME_SOFTIRQ]; in root_cgroup_cputime()
514 cputime->sum_exec_runtime += cpustat[CPUTIME_STEAL]; in root_cgroup_cputime()
517 bstat->forceidle_sum += cpustat[CPUTIME_FORCEIDLE]; in root_cgroup_cputime()
/kernel/
Dwatchdog.c359 u64 *cpustat = kcpustat.cpustat; in update_cpustat() local
367 new_stat = get_16bit_precision(cpustat[tracked_stats[i]]); in update_cpustat()