Lines Matching refs:index
95 enum cpuacct_stat_index index) in cpuacct_cpuusage_read() argument
105 if (WARN_ON_ONCE(index > CPUACCT_STAT_NSTATS)) in cpuacct_cpuusage_read()
115 switch (index) { in cpuacct_cpuusage_read()
162 enum cpuacct_stat_index index) in __cpuusage_read() argument
169 totalcpuusage += cpuacct_cpuusage_read(ca, i, index); in __cpuusage_read()
210 enum cpuacct_stat_index index) in __cpuacct_percpu_seq_show() argument
217 percpu = cpuacct_cpuusage_read(ca, i, index); in __cpuacct_percpu_seq_show()
242 int index; in cpuacct_all_seq_show() local
246 for (index = 0; index < CPUACCT_STAT_NSTATS; index++) in cpuacct_all_seq_show()
247 seq_printf(m, " %s", cpuacct_stat_desc[index]); in cpuacct_all_seq_show()
252 for (index = 0; index < CPUACCT_STAT_NSTATS; index++) in cpuacct_all_seq_show()
254 cpuacct_cpuusage_read(ca, cpu, index)); in cpuacct_all_seq_show()
350 void cpuacct_account_field(struct task_struct *tsk, int index, u64 val) in cpuacct_account_field() argument
355 __this_cpu_add(ca->cpustat->cpustat[index], val); in cpuacct_account_field()