Lines Matching refs:he
93 struct hist_entry *he; in del_hist_entries() local
108 he = rb_entry(node, struct hist_entry, rb_node); in del_hist_entries()
110 rb_erase(&he->rb_node_in, root_in); in del_hist_entries()
111 hist_entry__delete(he); in del_hist_entries()
117 #define COMM(he) (thread__comm_str(he->thread)) argument
118 #define DSO(he) (he->ms.map->dso->short_name) argument
119 #define SYM(he) (he->ms.sym->name) argument
120 #define CPU(he) (he->cpu) argument
121 #define PID(he) (he->thread->tid) argument
128 struct hist_entry *he; in test1() local
166 he = rb_entry(node, struct hist_entry, rb_node); in test1()
168 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "perf") && in test1()
169 !strcmp(SYM(he), "main") && he->stat.period == 200); in test1()
172 he = rb_entry(node, struct hist_entry, rb_node); in test1()
174 !strcmp(COMM(he), "bash") && !strcmp(DSO(he), "[kernel]") && in test1()
175 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test1()
178 he = rb_entry(node, struct hist_entry, rb_node); in test1()
180 !strcmp(COMM(he), "bash") && !strcmp(DSO(he), "bash") && in test1()
181 !strcmp(SYM(he), "main") && he->stat.period == 100); in test1()
184 he = rb_entry(node, struct hist_entry, rb_node); in test1()
186 !strcmp(COMM(he), "bash") && !strcmp(DSO(he), "bash") && in test1()
187 !strcmp(SYM(he), "xmalloc") && he->stat.period == 100); in test1()
190 he = rb_entry(node, struct hist_entry, rb_node); in test1()
192 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "[kernel]") && in test1()
193 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test1()
196 he = rb_entry(node, struct hist_entry, rb_node); in test1()
198 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "[kernel]") && in test1()
199 !strcmp(SYM(he), "schedule") && he->stat.period == 100); in test1()
202 he = rb_entry(node, struct hist_entry, rb_node); in test1()
204 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "libc") && in test1()
205 !strcmp(SYM(he), "free") && he->stat.period == 100); in test1()
208 he = rb_entry(node, struct hist_entry, rb_node); in test1()
210 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "libc") && in test1()
211 !strcmp(SYM(he), "malloc") && he->stat.period == 100); in test1()
214 he = rb_entry(node, struct hist_entry, rb_node); in test1()
216 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "perf") && in test1()
217 !strcmp(SYM(he), "cmd_record") && he->stat.period == 100); in test1()
230 struct hist_entry *he; in test2() local
266 he = rb_entry(node, struct hist_entry, rb_node); in test2()
268 CPU(he) == 1 && PID(he) == 100 && he->stat.period == 300); in test2()
271 he = rb_entry(node, struct hist_entry, rb_node); in test2()
273 CPU(he) == 0 && PID(he) == 100 && he->stat.period == 100); in test2()
286 struct hist_entry *he; in test3() local
320 he = rb_entry(node, struct hist_entry, rb_node); in test3()
322 !strcmp(COMM(he), "bash") && !strcmp(DSO(he), "bash") && in test3()
323 he->stat.period == 200); in test3()
326 he = rb_entry(node, struct hist_entry, rb_node); in test3()
328 !strcmp(COMM(he), "bash") && !strcmp(DSO(he), "[kernel]") && in test3()
329 he->stat.period == 100); in test3()
332 he = rb_entry(node, struct hist_entry, rb_node); in test3()
334 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "perf") && in test3()
335 he->stat.period == 300); in test3()
338 he = rb_entry(node, struct hist_entry, rb_node); in test3()
340 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "[kernel]") && in test3()
341 he->stat.period == 200); in test3()
344 he = rb_entry(node, struct hist_entry, rb_node); in test3()
346 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "libc") && in test3()
347 he->stat.period == 200); in test3()
360 struct hist_entry *he; in test4() local
398 he = rb_entry(node, struct hist_entry, rb_node); in test4()
400 !strcmp(DSO(he), "perf") && !strcmp(SYM(he), "cmd_record") && in test4()
401 !strcmp(COMM(he), "perf") && he->stat.period == 100); in test4()
404 he = rb_entry(node, struct hist_entry, rb_node); in test4()
406 !strcmp(DSO(he), "libc") && !strcmp(SYM(he), "free") && in test4()
407 !strcmp(COMM(he), "perf") && he->stat.period == 100); in test4()
410 he = rb_entry(node, struct hist_entry, rb_node); in test4()
412 !strcmp(DSO(he), "bash") && !strcmp(SYM(he), "main") && in test4()
413 !strcmp(COMM(he), "bash") && he->stat.period == 100); in test4()
416 he = rb_entry(node, struct hist_entry, rb_node); in test4()
418 !strcmp(DSO(he), "perf") && !strcmp(SYM(he), "main") && in test4()
419 !strcmp(COMM(he), "perf") && he->stat.period == 200); in test4()
422 he = rb_entry(node, struct hist_entry, rb_node); in test4()
424 !strcmp(DSO(he), "libc") && !strcmp(SYM(he), "malloc") && in test4()
425 !strcmp(COMM(he), "perf") && he->stat.period == 100); in test4()
428 he = rb_entry(node, struct hist_entry, rb_node); in test4()
430 !strcmp(DSO(he), "[kernel]") && !strcmp(SYM(he), "page_fault") && in test4()
431 !strcmp(COMM(he), "bash") && he->stat.period == 100); in test4()
434 he = rb_entry(node, struct hist_entry, rb_node); in test4()
436 !strcmp(DSO(he), "[kernel]") && !strcmp(SYM(he), "page_fault") && in test4()
437 !strcmp(COMM(he), "perf") && he->stat.period == 100); in test4()
440 he = rb_entry(node, struct hist_entry, rb_node); in test4()
442 !strcmp(DSO(he), "[kernel]") && !strcmp(SYM(he), "schedule") && in test4()
443 !strcmp(COMM(he), "perf") && he->stat.period == 100); in test4()
446 he = rb_entry(node, struct hist_entry, rb_node); in test4()
448 !strcmp(DSO(he), "bash") && !strcmp(SYM(he), "xmalloc") && in test4()
449 !strcmp(COMM(he), "bash") && he->stat.period == 100); in test4()
462 struct hist_entry *he; in test5() local
501 he = rb_entry(node, struct hist_entry, rb_node); in test5()
504 CPU(he) == 0 && PID(he) == 100 && in test5()
505 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "[kernel]") && in test5()
506 !strcmp(SYM(he), "schedule") && he->stat.period == 100); in test5()
509 he = rb_entry(node, struct hist_entry, rb_node); in test5()
511 CPU(he) == 2 && PID(he) == 200 && in test5()
512 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "[kernel]") && in test5()
513 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test5()
516 he = rb_entry(node, struct hist_entry, rb_node); in test5()
518 CPU(he) == 1 && PID(he) == 300 && in test5()
519 !strcmp(COMM(he), "bash") && !strcmp(DSO(he), "[kernel]") && in test5()
520 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test5()
523 he = rb_entry(node, struct hist_entry, rb_node); in test5()
525 CPU(he) == 0 && PID(he) == 300 && in test5()
526 !strcmp(COMM(he), "bash") && !strcmp(DSO(he), "bash") && in test5()
527 !strcmp(SYM(he), "xmalloc") && he->stat.period == 100); in test5()
530 he = rb_entry(node, struct hist_entry, rb_node); in test5()
532 CPU(he) == 3 && PID(he) == 300 && in test5()
533 !strcmp(COMM(he), "bash") && !strcmp(DSO(he), "bash") && in test5()
534 !strcmp(SYM(he), "main") && he->stat.period == 100); in test5()
537 he = rb_entry(node, struct hist_entry, rb_node); in test5()
539 CPU(he) == 1 && PID(he) == 100 && in test5()
540 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "libc") && in test5()
541 !strcmp(SYM(he), "malloc") && he->stat.period == 100); in test5()
544 he = rb_entry(node, struct hist_entry, rb_node); in test5()
546 CPU(he) == 2 && PID(he) == 100 && in test5()
547 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "libc") && in test5()
548 !strcmp(SYM(he), "free") && he->stat.period == 100); in test5()
551 he = rb_entry(node, struct hist_entry, rb_node); in test5()
553 CPU(he) == 1 && PID(he) == 100 && in test5()
554 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "perf") && in test5()
555 !strcmp(SYM(he), "cmd_record") && he->stat.period == 100); in test5()
558 he = rb_entry(node, struct hist_entry, rb_node); in test5()
560 CPU(he) == 1 && PID(he) == 100 && in test5()
561 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "perf") && in test5()
562 !strcmp(SYM(he), "main") && he->stat.period == 100); in test5()
565 he = rb_entry(node, struct hist_entry, rb_node); in test5()
567 CPU(he) == 2 && PID(he) == 200 && in test5()
568 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "perf") && in test5()
569 !strcmp(SYM(he), "main") && he->stat.period == 100); in test5()