Home
last modified time | relevance | path

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

/linux-6.6.21/fs/proc/
Dstat.c100 struct kernel_cpustat kcpustat; in show_stat() local
101 u64 *cpustat = kcpustat.cpustat; in show_stat()
103 kcpustat_cpu_fetch(&kcpustat, i); in show_stat()
108 idle += get_idle_time(&kcpustat, i); in show_stat()
109 iowait += get_iowait_time(&kcpustat, i); in show_stat()
140 struct kernel_cpustat kcpustat; in show_stat() local
141 u64 *cpustat = kcpustat.cpustat; in show_stat()
143 kcpustat_cpu_fetch(&kcpustat, i); in show_stat()
149 idle = get_idle_time(&kcpustat, i); in show_stat()
150 iowait = get_iowait_time(&kcpustat, i); in show_stat()
/linux-6.6.21/drivers/leds/trigger/
Dledtrig-activity.c61 struct kernel_cpustat kcpustat; in led_activity_function() local
63 kcpustat_cpu_fetch(&kcpustat, i); in led_activity_function()
65 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.6.21/include/linux/
Dkernel_stat.h96 extern u64 kcpustat_field(struct kernel_cpustat *kcpustat,
100 static inline u64 kcpustat_field(struct kernel_cpustat *kcpustat, in kcpustat_field() argument
103 return kcpustat->cpustat[usage]; in kcpustat_field()
/linux-6.6.21/drivers/macintosh/
Drack-meter.c83 struct kernel_cpustat *kcpustat = &kcpustat_cpu(cpu); in get_cpu_idle_time() local
86 retval = kcpustat->cpustat[CPUTIME_IDLE] + in get_cpu_idle_time()
87 kcpustat->cpustat[CPUTIME_IOWAIT]; in get_cpu_idle_time()
90 retval += kcpustat_field(kcpustat, CPUTIME_NICE, cpu); in get_cpu_idle_time()
/linux-6.6.21/kernel/cgroup/
Drstat.c454 struct kernel_cpustat kcpustat; in root_cgroup_cputime() local
455 u64 *cpustat = kcpustat.cpustat; in root_cgroup_cputime()
459 kcpustat_cpu_fetch(&kcpustat, i); in root_cgroup_cputime()
/linux-6.6.21/drivers/cpufreq/
Dcpufreq.c131 struct kernel_cpustat kcpustat; in get_cpu_idle_time_jiffy() local
138 kcpustat_cpu_fetch(&kcpustat, cpu); in get_cpu_idle_time_jiffy()
140 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.6.21/kernel/sched/
Dcputime.c980 u64 kcpustat_field(struct kernel_cpustat *kcpustat, in kcpustat_field() argument
983 u64 *cpustat = kcpustat->cpustat; in kcpustat_field()