Lines Matching refs:lat
113 struct latency_record *lat) in account_global_scheduler_latency() argument
132 unsigned long record = lat->backtrace[q]; 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()
157 memcpy(&latency_record[i], lat, sizeof(struct latency_record)); in account_global_scheduler_latency()
181 struct latency_record lat; in __account_scheduler_latency() local
192 memset(&lat, 0, sizeof(lat)); in __account_scheduler_latency()
193 lat.count = 1; in __account_scheduler_latency()
194 lat.time = usecs; in __account_scheduler_latency()
195 lat.max = usecs; in __account_scheduler_latency()
197 stack_trace_save_tsk(tsk, lat.backtrace, LT_BACKTRACEDEPTH, 0); in __account_scheduler_latency()
201 account_global_scheduler_latency(tsk, &lat); in __account_scheduler_latency()
209 unsigned long record = lat.backtrace[q]; in __account_scheduler_latency()
222 mylat->time += lat.time; in __account_scheduler_latency()
223 if (lat.time > mylat->max) in __account_scheduler_latency()
224 mylat->max = lat.time; in __account_scheduler_latency()
237 memcpy(&tsk->latency_record[i], &lat, sizeof(struct latency_record)); in __account_scheduler_latency()