Searched refs:cpustat (Results 1 – 13 of 13) sorted by relevance
30 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 …]
20 nsec += (__force u64) kcpustat_cpu(i).cpustat[CPUTIME_IDLE]; in uptime_proc_show()
32 struct kernel_cpustat __percpu *cpustat; member53 .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() local280 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 …]
36 u64 *cpustat = kcpustat_this_cpu->cpustat; in irqtime_account_delta() local39 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() local149 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() local210 cpustat[CPUTIME_STEAL] += cputime; in account_steal_time()[all …]
119 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()
63 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()
1 cpustat
50 hostprogs-y += cpustat106 cpustat-objs := bpf_load.o cpustat_user.o
111 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()
128 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()
35 u64 cpustat[NR_STATS]; member
88 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()
727 return local_clock() - kcpustat_this_cpu->cpustat[CPUTIME_STEAL]; in running_clock()