Lines Matching refs:e
53 static struct latency_entry *find_latency_entry(struct latency_entry *e, char *reason);
68 struct latency_entry *e; in main() local
143 e = NULL; in main()
146 e = read_thread_stats(e, erase, pid, tid, 1); in main()
148 e = read_process_stats(e, erase, pid); in main()
151 e = read_global_stats(e, erase); in main()
165 print_latency_entries(e); in main()
175 struct latency_entry *e; in read_global_stats() local
193 e = read_latency_file(f, list); in read_global_stats()
197 return e; in read_global_stats()
204 struct latency_entry *e; in read_process_stats() local
215 e = list; in read_process_stats()
222 e = read_thread_stats(e, erase, pid, tid, 0); in read_process_stats()
227 return e; in read_process_stats()
233 struct latency_entry *e; in read_thread_stats() local
263 e = read_latency_file(f, list); in read_thread_stats()
267 return e; in read_thread_stats()
271 struct latency_entry *e; in alloc_latency_entry() local
274 e = free_entries; in alloc_latency_entry()
277 e = calloc(1, sizeof(struct latency_entry)); in alloc_latency_entry()
278 if (!e) { in alloc_latency_entry()
284 return e; in alloc_latency_entry()
288 struct latency_entry *e; in find_latency_entry() local
290 e = head; in find_latency_entry()
292 while (e) { in find_latency_entry()
293 if (!strcmp(e->reason, reason)) in find_latency_entry()
294 return e; in find_latency_entry()
295 e = e->next; in find_latency_entry()
316 struct latency_entry *e, *head; in read_latency_file() local
337 e = find_latency_entry(head, reason); in read_latency_file()
338 if (e) { in read_latency_file()
339 e->count += count; in read_latency_file()
340 if (max > e->max) in read_latency_file()
341 e->max = max; in read_latency_file()
342 e->total += total; in read_latency_file()
344 e = alloc_latency_entry(); in read_latency_file()
345 e->count = count; in read_latency_file()
346 e->max = max; in read_latency_file()
347 e->total = total; in read_latency_file()
348 strcpy(e->reason, reason); in read_latency_file()
349 e->next = head; in read_latency_file()
350 head = e; in read_latency_file()
359 struct latency_entry *e, **array; in print_latency_entries() local
363 e = head; in print_latency_entries()
365 while (e) { in print_latency_entries()
367 e = e->next; in print_latency_entries()
370 e = head; in print_latency_entries()
377 array[i] = e; in print_latency_entries()
378 e = e->next; in print_latency_entries()
385 e = array[i]; in print_latency_entries()
386 average = e->total / e->count; in print_latency_entries()
388 e->max / 1000, (e->max % 1000) / 10, in print_latency_entries()
390 e->count, in print_latency_entries()
391 e->reason); in print_latency_entries()