Home
last modified time | relevance | path

Searched refs:kcpustat (Results 1 – 7 of 7) sorted by relevance

/kernel/linux/linux-5.10/fs/proc/
Dstat.c123 struct kernel_cpustat kcpustat; in show_stat() local
124 u64 *cpustat = kcpustat.cpustat; in show_stat()
126 kcpustat_cpu_fetch(&kcpustat, i); in show_stat()
131 idle += get_idle_time(&kcpustat, i); in show_stat()
132 iowait += get_iowait_time(&kcpustat, i); in show_stat()
163 struct kernel_cpustat kcpustat; in show_stat() local
164 u64 *cpustat = kcpustat.cpustat; in show_stat()
166 kcpustat_cpu_fetch(&kcpustat, i); in show_stat()
172 idle = get_idle_time(&kcpustat, i); in show_stat()
173 iowait = get_iowait_time(&kcpustat, i); in show_stat()
/kernel/linux/linux-5.10/drivers/leds/trigger/
Dledtrig-activity.c60 struct kernel_cpustat kcpustat; in led_activity_function() local
62 kcpustat_cpu_fetch(&kcpustat, i); in led_activity_function()
64 curr_used += kcpustat.cpustat[CPUTIME_USER] in led_activity_function()
65 + kcpustat.cpustat[CPUTIME_NICE] in led_activity_function()
66 + kcpustat.cpustat[CPUTIME_SYSTEM] in led_activity_function()
67 + kcpustat.cpustat[CPUTIME_SOFTIRQ] in led_activity_function()
68 + kcpustat.cpustat[CPUTIME_IRQ]; in led_activity_function()
/kernel/linux/linux-5.10/include/linux/
Dkernel_stat.h82 extern u64 kcpustat_field(struct kernel_cpustat *kcpustat,
86 static inline u64 kcpustat_field(struct kernel_cpustat *kcpustat, in kcpustat_field() argument
89 return kcpustat->cpustat[usage]; in kcpustat_field()
/kernel/linux/linux-5.10/kernel/cgroup/
Drstat.c405 struct kernel_cpustat kcpustat; in root_cgroup_cputime() local
406 u64 *cpustat = kcpustat.cpustat; in root_cgroup_cputime()
410 kcpustat_cpu_fetch(&kcpustat, i); in root_cgroup_cputime()
/kernel/linux/linux-5.10/drivers/macintosh/
Drack-meter.c84 struct kernel_cpustat *kcpustat = &kcpustat_cpu(cpu); in get_cpu_idle_time() local
87 retval = kcpustat->cpustat[CPUTIME_IDLE] + in get_cpu_idle_time()
88 kcpustat->cpustat[CPUTIME_IOWAIT]; in get_cpu_idle_time()
91 retval += kcpustat_field(kcpustat, CPUTIME_NICE, cpu); in get_cpu_idle_time()
/kernel/linux/linux-5.10/drivers/cpufreq/
Dcpufreq.c127 struct kernel_cpustat kcpustat; in get_cpu_idle_time_jiffy() local
134 kcpustat_cpu_fetch(&kcpustat, cpu); in get_cpu_idle_time_jiffy()
136 busy_time = kcpustat.cpustat[CPUTIME_USER]; in get_cpu_idle_time_jiffy()
137 busy_time += kcpustat.cpustat[CPUTIME_SYSTEM]; in get_cpu_idle_time_jiffy()
138 busy_time += kcpustat.cpustat[CPUTIME_IRQ]; in get_cpu_idle_time_jiffy()
139 busy_time += kcpustat.cpustat[CPUTIME_SOFTIRQ]; in get_cpu_idle_time_jiffy()
140 busy_time += kcpustat.cpustat[CPUTIME_STEAL]; in get_cpu_idle_time_jiffy()
141 busy_time += kcpustat.cpustat[CPUTIME_NICE]; in get_cpu_idle_time_jiffy()
/kernel/linux/linux-5.10/kernel/sched/
Dcputime.c973 u64 kcpustat_field(struct kernel_cpustat *kcpustat, in kcpustat_field() argument
976 u64 *cpustat = kcpustat->cpustat; in kcpustat_field()