Lines Matching refs:lat
87 struct latency_record *lat) in account_global_scheduler_latency() argument
106 unsigned long record = lat->backtrace[q]; in account_global_scheduler_latency()
119 latency_record[i].time += lat->time; in account_global_scheduler_latency()
120 if (lat->time > latency_record[i].max) in account_global_scheduler_latency()
121 latency_record[i].max = lat->time; in account_global_scheduler_latency()
131 memcpy(&latency_record[i], lat, sizeof(struct latency_record)); in account_global_scheduler_latency()
155 struct latency_record lat; in __account_scheduler_latency() local
166 memset(&lat, 0, sizeof(lat)); in __account_scheduler_latency()
167 lat.count = 1; in __account_scheduler_latency()
168 lat.time = usecs; in __account_scheduler_latency()
169 lat.max = usecs; in __account_scheduler_latency()
171 stack_trace_save_tsk(tsk, lat.backtrace, LT_BACKTRACEDEPTH, 0); in __account_scheduler_latency()
175 account_global_scheduler_latency(tsk, &lat); in __account_scheduler_latency()
183 unsigned long record = lat.backtrace[q]; in __account_scheduler_latency()
196 mylat->time += lat.time; in __account_scheduler_latency()
197 if (lat.time > mylat->max) in __account_scheduler_latency()
198 mylat->max = lat.time; in __account_scheduler_latency()
211 memcpy(&tsk->latency_record[i], &lat, sizeof(struct latency_record)); in __account_scheduler_latency()