Home
last modified time | relevance | path

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

/linux-6.12.1/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.c40 u64 *cpustat = kcpustat_this_cpu->cpustat; in irqtime_account_delta() local
43 cpustat[idx] += delta; in irqtime_account_delta()
111 __this_cpu_add(kernel_cpustat.cpustat[index], tmp); in task_group_account_field()
145 u64 *cpustat = kcpustat_this_cpu->cpustat; in account_guest_time() local
155 cpustat[CPUTIME_GUEST_NICE] += cputime; in account_guest_time()
158 cpustat[CPUTIME_GUEST] += cputime; in account_guest_time()
213 u64 *cpustat = kcpustat_this_cpu->cpustat; in account_steal_time() local
215 cpustat[CPUTIME_STEAL] += cputime; in account_steal_time()
224 u64 *cpustat = kcpustat_this_cpu->cpustat; in account_idle_time() local
228 cpustat[CPUTIME_IOWAIT] += cputime; in account_idle_time()
[all …]
/linux-6.12.1/fs/proc/
Dstat.c34 idle = kcs->cpustat[CPUTIME_IDLE]; in get_idle_time()
50 iowait = kcs->cpustat[CPUTIME_IOWAIT]; in get_iowait_time()
101 u64 *cpustat = kcpustat.cpustat; in show_stat() local
105 user += cpustat[CPUTIME_USER]; in show_stat()
106 nice += cpustat[CPUTIME_NICE]; in show_stat()
107 system += cpustat[CPUTIME_SYSTEM]; in show_stat()
110 irq += cpustat[CPUTIME_IRQ]; in show_stat()
111 softirq += cpustat[CPUTIME_SOFTIRQ]; in show_stat()
112 steal += cpustat[CPUTIME_STEAL]; in show_stat()
113 guest += cpustat[CPUTIME_GUEST]; in show_stat()
[all …]
/linux-6.12.1/arch/s390/appldata/
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-6.12.1/drivers/leds/trigger/
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-6.12.1/kernel/cgroup/
Drstat.c572 u64 *cpustat = kcpustat.cpustat; in root_cgroup_cputime() local
578 user += cpustat[CPUTIME_USER]; in root_cgroup_cputime()
579 user += cpustat[CPUTIME_NICE]; in root_cgroup_cputime()
582 sys += cpustat[CPUTIME_SYSTEM]; in root_cgroup_cputime()
583 sys += cpustat[CPUTIME_IRQ]; in root_cgroup_cputime()
584 sys += cpustat[CPUTIME_SOFTIRQ]; in root_cgroup_cputime()
589 cputime->sum_exec_runtime += cpustat[CPUTIME_STEAL]; in root_cgroup_cputime()
592 bstat->forceidle_sum += cpustat[CPUTIME_FORCEIDLE]; in root_cgroup_cputime()
/linux-6.12.1/include/linux/
Dkernel_stat.h37 u64 cpustat[NR_STATS]; member
110 return kcpustat->cpustat[usage]; in kcpustat_field()
/linux-6.12.1/samples/bpf/
D.gitignore2 cpustat
DMakefile42 tprogs-y += cpustat
91 cpustat-objs := cpustat_user.o
/linux-6.12.1/kernel/
Dwatchdog.c389 u64 *cpustat = kcpustat.cpustat; in update_cpustat() local
397 new_stat = get_16bit_precision(cpustat[tracked_stats[i]]); in update_cpustat()
/linux-6.12.1/drivers/macintosh/
Drack-meter.c86 retval = kcpustat->cpustat[CPUTIME_IDLE] + in get_cpu_idle_time()
87 kcpustat->cpustat[CPUTIME_IOWAIT]; in get_cpu_idle_time()
/linux-6.12.1/drivers/cpufreq/
Dcpufreq.c140 busy_time = kcpustat.cpustat[CPUTIME_USER]; in get_cpu_idle_time_jiffy()
141 busy_time += kcpustat.cpustat[CPUTIME_SYSTEM]; in get_cpu_idle_time_jiffy()
142 busy_time += kcpustat.cpustat[CPUTIME_IRQ]; in get_cpu_idle_time_jiffy()
143 busy_time += kcpustat.cpustat[CPUTIME_SOFTIRQ]; in get_cpu_idle_time_jiffy()
144 busy_time += kcpustat.cpustat[CPUTIME_STEAL]; in get_cpu_idle_time_jiffy()
145 busy_time += kcpustat.cpustat[CPUTIME_NICE]; in get_cpu_idle_time_jiffy()
/linux-6.12.1/arch/s390/kernel/
Dhiperdispatch.c217 steal += kcpustat_cpu(cpu).cpustat[CPUTIME_STEAL]; in hd_calculate_steal_percentage()
/linux-6.12.1/arch/powerpc/kernel/
Dtime.c670 return local_clock() - kcpustat_this_cpu->cpustat[CPUTIME_STEAL]; in running_clock()