Lines Matching refs:index
99 enum cpuacct_stat_index index) in cpuacct_cpuusage_read() argument
108 BUG_ON(index > CPUACCT_STAT_NSTATS); in cpuacct_cpuusage_read()
117 if (index == CPUACCT_STAT_NSTATS) { in cpuacct_cpuusage_read()
124 data = cpuusage->usages[index]; in cpuacct_cpuusage_read()
156 enum cpuacct_stat_index index) in __cpuusage_read() argument
163 totalcpuusage += cpuacct_cpuusage_read(ca, i, index); in __cpuusage_read()
204 enum cpuacct_stat_index index) in __cpuacct_percpu_seq_show() argument
211 percpu = cpuacct_cpuusage_read(ca, i, index); in __cpuacct_percpu_seq_show()
236 int index; in cpuacct_all_seq_show() local
240 for (index = 0; index < CPUACCT_STAT_NSTATS; index++) in cpuacct_all_seq_show()
241 seq_printf(m, " %s", cpuacct_stat_desc[index]); in cpuacct_all_seq_show()
249 for (index = 0; index < CPUACCT_STAT_NSTATS; index++) { in cpuacct_all_seq_show()
258 seq_printf(m, " %llu", cpuusage->usages[index]); in cpuacct_all_seq_show()
341 int index = CPUACCT_STAT_SYSTEM; in cpuacct_charge() local
345 index = CPUACCT_STAT_USER; in cpuacct_charge()
350 this_cpu_ptr(ca->cpuusage)->usages[index] += cputime; in cpuacct_charge()
360 void cpuacct_account_field(struct task_struct *tsk, int index, u64 val) in cpuacct_account_field() argument
366 this_cpu_ptr(ca->cpustat)->cpustat[index] += val; in cpuacct_account_field()