Home
last modified time | relevance | path

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

/linux/fs/proc/
A Dstat.c31 idle = kcs->cpustat[CPUTIME_IDLE]; in get_idle_time()
58 idle = kcs->cpustat[CPUTIME_IDLE]; in get_idle_time()
127 u64 *cpustat = kcpustat.cpustat; in show_stat() local
131 user += cpustat[CPUTIME_USER]; in show_stat()
132 nice += cpustat[CPUTIME_NICE]; in show_stat()
136 irq += cpustat[CPUTIME_IRQ]; in show_stat()
167 u64 *cpustat = kcpustat.cpustat; in show_stat() local
172 user = cpustat[CPUTIME_USER]; in show_stat()
173 nice = cpustat[CPUTIME_NICE]; in show_stat()
177 irq = cpustat[CPUTIME_IRQ]; in show_stat()
[all …]
/linux/kernel/sched/
A Dcputime.c37 u64 *cpustat = kcpustat_this_cpu->cpustat; in irqtime_account_delta() local
40 cpustat[idx] += delta; in irqtime_account_delta()
142 u64 *cpustat = kcpustat_this_cpu->cpustat; in account_guest_time() local
210 u64 *cpustat = kcpustat_this_cpu->cpustat; in account_steal_time() local
221 u64 *cpustat = kcpustat_this_cpu->cpustat; in account_idle_time() local
924 *val = cpustat[usage]; in kcpustat_field_vtime()
965 u64 *cpustat = kcpustat->cpustat; in kcpustat_field() local
966 u64 val = cpustat[usage]; in kcpustat_field()
982 return cpustat[usage]; in kcpustat_field()
1004 u64 *cpustat; in kcpustat_cpu_fetch_vtime() local
[all …]
A Dcpuacct.c33 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()
[all …]
/linux/arch/s390/appldata/
A Dappldata_os.c111 nsecs_to_jiffies(kcpustat_cpu(i).cpustat[CPUTIME_USER]); in appldata_get_os_data()
113 nsecs_to_jiffies(kcpustat_cpu(i).cpustat[CPUTIME_NICE]); in appldata_get_os_data()
115 nsecs_to_jiffies(kcpustat_cpu(i).cpustat[CPUTIME_SYSTEM]); in appldata_get_os_data()
117 nsecs_to_jiffies(kcpustat_cpu(i).cpustat[CPUTIME_IDLE]); in appldata_get_os_data()
119 nsecs_to_jiffies(kcpustat_cpu(i).cpustat[CPUTIME_IRQ]); in appldata_get_os_data()
121 nsecs_to_jiffies(kcpustat_cpu(i).cpustat[CPUTIME_SOFTIRQ]); in appldata_get_os_data()
123 nsecs_to_jiffies(kcpustat_cpu(i).cpustat[CPUTIME_IOWAIT]); in appldata_get_os_data()
125 nsecs_to_jiffies(kcpustat_cpu(i).cpustat[CPUTIME_STEAL]); in appldata_get_os_data()
/linux/kernel/cgroup/
A Drstat.c418 u64 *cpustat = kcpustat.cpustat; in root_cgroup_cputime() local
424 user += cpustat[CPUTIME_USER]; in root_cgroup_cputime()
425 user += cpustat[CPUTIME_NICE]; in root_cgroup_cputime()
428 sys += cpustat[CPUTIME_SYSTEM]; in root_cgroup_cputime()
429 sys += cpustat[CPUTIME_IRQ]; in root_cgroup_cputime()
430 sys += cpustat[CPUTIME_SOFTIRQ]; in root_cgroup_cputime()
435 cputime->sum_exec_runtime += cpustat[CPUTIME_STEAL]; in root_cgroup_cputime()
/linux/drivers/leds/trigger/
A Dledtrig-activity.c65 curr_used += kcpustat.cpustat[CPUTIME_USER] in led_activity_function()
66 + kcpustat.cpustat[CPUTIME_NICE] in led_activity_function()
67 + kcpustat.cpustat[CPUTIME_SYSTEM] in led_activity_function()
68 + kcpustat.cpustat[CPUTIME_SOFTIRQ] in led_activity_function()
69 + kcpustat.cpustat[CPUTIME_IRQ]; in led_activity_function()
/linux/include/linux/
A Dkernel_stat.h35 u64 cpustat[NR_STATS]; member
88 return kcpustat->cpustat[usage]; in kcpustat_field()
/linux/samples/bpf/
A D.gitignore2 cpustat
A DMakefile46 tprogs-y += cpustat
111 cpustat-objs := cpustat_user.o
/linux/drivers/macintosh/
A Drack-meter.c87 retval = kcpustat->cpustat[CPUTIME_IDLE] + in get_cpu_idle_time()
88 kcpustat->cpustat[CPUTIME_IOWAIT]; in get_cpu_idle_time()
/linux/drivers/cpufreq/
A Dcpufreq.c133 busy_time = kcpustat.cpustat[CPUTIME_USER]; in get_cpu_idle_time_jiffy()
134 busy_time += kcpustat.cpustat[CPUTIME_SYSTEM]; in get_cpu_idle_time_jiffy()
135 busy_time += kcpustat.cpustat[CPUTIME_IRQ]; in get_cpu_idle_time_jiffy()
136 busy_time += kcpustat.cpustat[CPUTIME_SOFTIRQ]; in get_cpu_idle_time_jiffy()
137 busy_time += kcpustat.cpustat[CPUTIME_STEAL]; in get_cpu_idle_time_jiffy()
138 busy_time += kcpustat.cpustat[CPUTIME_NICE]; in get_cpu_idle_time_jiffy()
/linux/arch/powerpc/kernel/
A Dtime.c705 return local_clock() - kcpustat_this_cpu->cpustat[CPUTIME_STEAL]; in running_clock()

Completed in 22 milliseconds