• Home
  • Raw
  • Download

Lines Matching refs:e

48 static void free_latency_entry(struct latency_entry *e);
54 static struct latency_entry *find_latency_entry(struct latency_entry *e, char *reason);
69 struct latency_entry *e; in main() local
144 e = NULL; in main()
147 e = read_thread_stats(e, erase, pid, tid, 1); in main()
149 e = read_process_stats(e, erase, pid); in main()
152 e = read_global_stats(e, erase); in main()
166 print_latency_entries(e); in main()
176 struct latency_entry *e; in read_global_stats() local
194 e = read_latency_file(f, list); in read_global_stats()
198 return e; in read_global_stats()
205 struct latency_entry *e; in read_process_stats() local
216 e = list; in read_process_stats()
223 e = read_thread_stats(e, erase, pid, tid, 0); in read_process_stats()
228 return e; in read_process_stats()
234 struct latency_entry *e; in read_thread_stats() local
264 e = read_latency_file(f, list); in read_thread_stats()
268 return e; in read_thread_stats()
272 struct latency_entry *e; in alloc_latency_entry() local
275 e = free_entries; in alloc_latency_entry()
278 e = calloc(1, sizeof(struct latency_entry)); in alloc_latency_entry()
279 if (!e) { in alloc_latency_entry()
285 return e; in alloc_latency_entry()
288 static void free_latency_entry(struct latency_entry *e) { in free_latency_entry() argument
289 e->next = free_entries; in free_latency_entry()
290 free_entries = e; in free_latency_entry()
294 struct latency_entry *e; in find_latency_entry() local
296 e = head; in find_latency_entry()
298 while (e) { in find_latency_entry()
299 if (!strcmp(e->reason, reason)) in find_latency_entry()
300 return e; in find_latency_entry()
301 e = e->next; in find_latency_entry()
326 struct latency_entry *e, *head; in read_latency_file() local
347 e = find_latency_entry(head, reason); in read_latency_file()
348 if (e) { in read_latency_file()
349 e->count += count; in read_latency_file()
350 if (max > e->max) in read_latency_file()
351 e->max = max; in read_latency_file()
352 e->total += total; in read_latency_file()
354 e = alloc_latency_entry(); in read_latency_file()
355 e->count = count; in read_latency_file()
356 e->max = max; in read_latency_file()
357 e->total = total; in read_latency_file()
358 strcpy(e->reason, reason); in read_latency_file()
359 e->next = head; in read_latency_file()
360 head = e; in read_latency_file()
369 struct latency_entry *e, **array; in print_latency_entries() local
373 e = head; in print_latency_entries()
375 while (e) { in print_latency_entries()
377 e = e->next; in print_latency_entries()
380 e = head; in print_latency_entries()
387 array[i] = e; in print_latency_entries()
388 e = e->next; in print_latency_entries()
395 e = array[i]; in print_latency_entries()
396 average = e->total / e->count; in print_latency_entries()
398 e->max / 1000, (e->max % 1000) / 10, in print_latency_entries()
400 e->count, in print_latency_entries()
401 e->reason); in print_latency_entries()