Home
last modified time | relevance | path

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

/Linux-v4.19/fs/proc/
Dstat.c30 idle = kcpustat_cpu(cpu).cpustat[CPUTIME_IDLE]; in get_idle_time()
40 iowait = kcpustat_cpu(cpu).cpustat[CPUTIME_IOWAIT]; in get_iowait_time()
57 idle = kcpustat_cpu(cpu).cpustat[CPUTIME_IDLE]; in get_idle_time()
73 iowait = kcpustat_cpu(cpu).cpustat[CPUTIME_IOWAIT]; in get_iowait_time()
98 user += kcpustat_cpu(i).cpustat[CPUTIME_USER]; in show_stat()
99 nice += kcpustat_cpu(i).cpustat[CPUTIME_NICE]; in show_stat()
100 system += kcpustat_cpu(i).cpustat[CPUTIME_SYSTEM]; in show_stat()
103 irq += kcpustat_cpu(i).cpustat[CPUTIME_IRQ]; in show_stat()
104 softirq += kcpustat_cpu(i).cpustat[CPUTIME_SOFTIRQ]; in show_stat()
105 steal += kcpustat_cpu(i).cpustat[CPUTIME_STEAL]; in show_stat()
[all …]
Duptime.c20 nsec += (__force u64) kcpustat_cpu(i).cpustat[CPUTIME_IDLE]; in uptime_proc_show()
/Linux-v4.19/kernel/sched/
Dcpuacct.c32 struct kernel_cpustat __percpu *cpustat; member
53 .cpustat = &kernel_cpustat,
74 ca->cpustat = alloc_percpu(struct kernel_cpustat); in cpuacct_css_alloc()
75 if (!ca->cpustat) in cpuacct_css_alloc()
93 free_percpu(ca->cpustat); in cpuacct_css_free()
278 u64 *cpustat = per_cpu_ptr(ca->cpustat, cpu)->cpustat; in cpuacct_stats_show() local
280 val[CPUACCT_STAT_USER] += cpustat[CPUTIME_USER]; in cpuacct_stats_show()
281 val[CPUACCT_STAT_USER] += cpustat[CPUTIME_NICE]; in cpuacct_stats_show()
282 val[CPUACCT_STAT_SYSTEM] += cpustat[CPUTIME_SYSTEM]; in cpuacct_stats_show()
283 val[CPUACCT_STAT_SYSTEM] += cpustat[CPUTIME_IRQ]; in cpuacct_stats_show()
[all …]
Dcputime.c36 u64 *cpustat = kcpustat_this_cpu->cpustat; in irqtime_account_delta() local
39 cpustat[idx] += delta; in irqtime_account_delta()
106 __this_cpu_add(kernel_cpustat.cpustat[index], tmp); in task_group_account_field()
140 u64 *cpustat = kcpustat_this_cpu->cpustat; in account_guest_time() local
149 cpustat[CPUTIME_NICE] += cputime; in account_guest_time()
150 cpustat[CPUTIME_GUEST_NICE] += cputime; in account_guest_time()
152 cpustat[CPUTIME_USER] += cputime; in account_guest_time()
153 cpustat[CPUTIME_GUEST] += cputime; in account_guest_time()
208 u64 *cpustat = kcpustat_this_cpu->cpustat; in account_steal_time() local
210 cpustat[CPUTIME_STEAL] += cputime; in account_steal_time()
[all …]
/Linux-v4.19/arch/s390/appldata/
Dappldata_os.c119 nsecs_to_jiffies(kcpustat_cpu(i).cpustat[CPUTIME_USER]); in appldata_get_os_data()
121 nsecs_to_jiffies(kcpustat_cpu(i).cpustat[CPUTIME_NICE]); in appldata_get_os_data()
123 nsecs_to_jiffies(kcpustat_cpu(i).cpustat[CPUTIME_SYSTEM]); in appldata_get_os_data()
125 nsecs_to_jiffies(kcpustat_cpu(i).cpustat[CPUTIME_IDLE]); in appldata_get_os_data()
127 nsecs_to_jiffies(kcpustat_cpu(i).cpustat[CPUTIME_IRQ]); in appldata_get_os_data()
129 nsecs_to_jiffies(kcpustat_cpu(i).cpustat[CPUTIME_SOFTIRQ]); in appldata_get_os_data()
131 nsecs_to_jiffies(kcpustat_cpu(i).cpustat[CPUTIME_IOWAIT]); in appldata_get_os_data()
133 nsecs_to_jiffies(kcpustat_cpu(i).cpustat[CPUTIME_STEAL]); in appldata_get_os_data()
/Linux-v4.19/drivers/leds/trigger/
Dledtrig-activity.c63 curr_used += kcpustat_cpu(i).cpustat[CPUTIME_USER] in led_activity_function()
64 + kcpustat_cpu(i).cpustat[CPUTIME_NICE] in led_activity_function()
65 + kcpustat_cpu(i).cpustat[CPUTIME_SYSTEM] in led_activity_function()
66 + kcpustat_cpu(i).cpustat[CPUTIME_SOFTIRQ] in led_activity_function()
67 + kcpustat_cpu(i).cpustat[CPUTIME_IRQ]; in led_activity_function()
/Linux-v4.19/samples/bpf/
D.gitignore1 cpustat
DMakefile50 hostprogs-y += cpustat
106 cpustat-objs := bpf_load.o cpustat_user.o
/Linux-v4.19/drivers/cpufreq/
Dcpufreq_governor.c111 j_cdbs->prev_cpu_nice = kcpustat_cpu(j).cpustat[CPUTIME_NICE]; in gov_update_cpu_data()
155 u64 cur_nice = kcpustat_cpu(j).cpustat[CPUTIME_NICE]; in dbs_update()
534 j_cdbs->prev_cpu_nice = kcpustat_cpu(j).cpustat[CPUTIME_NICE]; in cpufreq_dbs_governor_start()
Dcpufreq.c128 busy_time = kcpustat_cpu(cpu).cpustat[CPUTIME_USER]; in get_cpu_idle_time_jiffy()
129 busy_time += kcpustat_cpu(cpu).cpustat[CPUTIME_SYSTEM]; in get_cpu_idle_time_jiffy()
130 busy_time += kcpustat_cpu(cpu).cpustat[CPUTIME_IRQ]; in get_cpu_idle_time_jiffy()
131 busy_time += kcpustat_cpu(cpu).cpustat[CPUTIME_SOFTIRQ]; in get_cpu_idle_time_jiffy()
132 busy_time += kcpustat_cpu(cpu).cpustat[CPUTIME_STEAL]; in get_cpu_idle_time_jiffy()
133 busy_time += kcpustat_cpu(cpu).cpustat[CPUTIME_NICE]; in get_cpu_idle_time_jiffy()
/Linux-v4.19/include/linux/
Dkernel_stat.h35 u64 cpustat[NR_STATS]; member
/Linux-v4.19/drivers/macintosh/
Drack-meter.c88 retval = kcpustat_cpu(cpu).cpustat[CPUTIME_IDLE] + in get_cpu_idle_time()
89 kcpustat_cpu(cpu).cpustat[CPUTIME_IOWAIT]; in get_cpu_idle_time()
92 retval += kcpustat_cpu(cpu).cpustat[CPUTIME_NICE]; in get_cpu_idle_time()
/Linux-v4.19/arch/powerpc/kernel/
Dtime.c727 return local_clock() - kcpustat_this_cpu->cpustat[CPUTIME_STEAL]; in running_clock()