Lines Matching refs:i
116 int i; in account_global_scheduler_latency() local
122 for (i = 0; i < MAXLR; i++) { in account_global_scheduler_latency()
126 if (!latency_record[i].backtrace[0]) { in account_global_scheduler_latency()
127 if (firstnonnull > i) in account_global_scheduler_latency()
128 firstnonnull = i; in account_global_scheduler_latency()
134 if (latency_record[i].backtrace[q] != record) { in account_global_scheduler_latency()
144 latency_record[i].count++; in account_global_scheduler_latency()
145 latency_record[i].time += lat->time; in account_global_scheduler_latency()
146 if (lat->time > latency_record[i].max) in account_global_scheduler_latency()
147 latency_record[i].max = lat->time; in account_global_scheduler_latency()
152 i = firstnonnull; in account_global_scheduler_latency()
153 if (i >= MAXLR) in account_global_scheduler_latency()
157 memcpy(&latency_record[i], lat, sizeof(struct latency_record)); in account_global_scheduler_latency()
180 int i, q; in __account_scheduler_latency() local
203 for (i = 0; i < tsk->latency_record_count; i++) { in __account_scheduler_latency()
207 mylat = &tsk->latency_record[i]; in __account_scheduler_latency()
236 i = tsk->latency_record_count++; in __account_scheduler_latency()
237 memcpy(&tsk->latency_record[i], &lat, sizeof(struct latency_record)); in __account_scheduler_latency()
245 int i; in lstats_show() local
249 for (i = 0; i < MAXLR; i++) { in lstats_show()
250 struct latency_record *lr = &latency_record[i]; in lstats_show()