Lines Matching refs:he

95 	struct hist_entry *he;  in del_hist_entries()  local
110 he = rb_entry(node, struct hist_entry, rb_node); in del_hist_entries()
112 rb_erase(&he->rb_node_in, root_in); in del_hist_entries()
113 hist_entry__delete(he); in del_hist_entries()
119 #define COMM(he) (thread__comm_str(he->thread)) argument
120 #define DSO(he) (he->ms.map->dso->short_name) argument
121 #define SYM(he) (he->ms.sym->name) argument
122 #define CPU(he) (he->cpu) argument
123 #define PID(he) (he->thread->tid) argument
130 struct hist_entry *he; in test1() local
168 he = rb_entry(node, struct hist_entry, rb_node); in test1()
170 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "perf") && in test1()
171 !strcmp(SYM(he), "main") && he->stat.period == 200); in test1()
174 he = rb_entry(node, struct hist_entry, rb_node); in test1()
176 !strcmp(COMM(he), "bash") && !strcmp(DSO(he), "[kernel]") && in test1()
177 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test1()
180 he = rb_entry(node, struct hist_entry, rb_node); in test1()
182 !strcmp(COMM(he), "bash") && !strcmp(DSO(he), "bash") && in test1()
183 !strcmp(SYM(he), "main") && he->stat.period == 100); in test1()
186 he = rb_entry(node, struct hist_entry, rb_node); in test1()
188 !strcmp(COMM(he), "bash") && !strcmp(DSO(he), "bash") && in test1()
189 !strcmp(SYM(he), "xmalloc") && he->stat.period == 100); in test1()
192 he = rb_entry(node, struct hist_entry, rb_node); in test1()
194 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "[kernel]") && in test1()
195 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test1()
198 he = rb_entry(node, struct hist_entry, rb_node); in test1()
200 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "[kernel]") && in test1()
201 !strcmp(SYM(he), "schedule") && he->stat.period == 100); in test1()
204 he = rb_entry(node, struct hist_entry, rb_node); in test1()
206 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "libc") && in test1()
207 !strcmp(SYM(he), "free") && he->stat.period == 100); in test1()
210 he = rb_entry(node, struct hist_entry, rb_node); in test1()
212 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "libc") && in test1()
213 !strcmp(SYM(he), "malloc") && he->stat.period == 100); in test1()
216 he = rb_entry(node, struct hist_entry, rb_node); in test1()
218 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "perf") && in test1()
219 !strcmp(SYM(he), "cmd_record") && he->stat.period == 100); in test1()
232 struct hist_entry *he; in test2() local
268 he = rb_entry(node, struct hist_entry, rb_node); in test2()
270 CPU(he) == 1 && PID(he) == 100 && he->stat.period == 300); in test2()
273 he = rb_entry(node, struct hist_entry, rb_node); in test2()
275 CPU(he) == 0 && PID(he) == 100 && he->stat.period == 100); in test2()
288 struct hist_entry *he; in test3() local
322 he = rb_entry(node, struct hist_entry, rb_node); in test3()
324 !strcmp(COMM(he), "bash") && !strcmp(DSO(he), "bash") && in test3()
325 he->stat.period == 200); in test3()
328 he = rb_entry(node, struct hist_entry, rb_node); in test3()
330 !strcmp(COMM(he), "bash") && !strcmp(DSO(he), "[kernel]") && in test3()
331 he->stat.period == 100); in test3()
334 he = rb_entry(node, struct hist_entry, rb_node); in test3()
336 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "perf") && in test3()
337 he->stat.period == 300); in test3()
340 he = rb_entry(node, struct hist_entry, rb_node); in test3()
342 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "[kernel]") && in test3()
343 he->stat.period == 200); in test3()
346 he = rb_entry(node, struct hist_entry, rb_node); in test3()
348 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "libc") && in test3()
349 he->stat.period == 200); in test3()
362 struct hist_entry *he; in test4() local
400 he = rb_entry(node, struct hist_entry, rb_node); in test4()
402 !strcmp(DSO(he), "perf") && !strcmp(SYM(he), "cmd_record") && in test4()
403 !strcmp(COMM(he), "perf") && he->stat.period == 100); in test4()
406 he = rb_entry(node, struct hist_entry, rb_node); in test4()
408 !strcmp(DSO(he), "libc") && !strcmp(SYM(he), "free") && in test4()
409 !strcmp(COMM(he), "perf") && he->stat.period == 100); in test4()
412 he = rb_entry(node, struct hist_entry, rb_node); in test4()
414 !strcmp(DSO(he), "bash") && !strcmp(SYM(he), "main") && in test4()
415 !strcmp(COMM(he), "bash") && he->stat.period == 100); in test4()
418 he = rb_entry(node, struct hist_entry, rb_node); in test4()
420 !strcmp(DSO(he), "perf") && !strcmp(SYM(he), "main") && in test4()
421 !strcmp(COMM(he), "perf") && he->stat.period == 200); in test4()
424 he = rb_entry(node, struct hist_entry, rb_node); in test4()
426 !strcmp(DSO(he), "libc") && !strcmp(SYM(he), "malloc") && in test4()
427 !strcmp(COMM(he), "perf") && he->stat.period == 100); in test4()
430 he = rb_entry(node, struct hist_entry, rb_node); in test4()
432 !strcmp(DSO(he), "[kernel]") && !strcmp(SYM(he), "page_fault") && in test4()
433 !strcmp(COMM(he), "bash") && he->stat.period == 100); in test4()
436 he = rb_entry(node, struct hist_entry, rb_node); in test4()
438 !strcmp(DSO(he), "[kernel]") && !strcmp(SYM(he), "page_fault") && in test4()
439 !strcmp(COMM(he), "perf") && he->stat.period == 100); in test4()
442 he = rb_entry(node, struct hist_entry, rb_node); in test4()
444 !strcmp(DSO(he), "[kernel]") && !strcmp(SYM(he), "schedule") && in test4()
445 !strcmp(COMM(he), "perf") && he->stat.period == 100); in test4()
448 he = rb_entry(node, struct hist_entry, rb_node); in test4()
450 !strcmp(DSO(he), "bash") && !strcmp(SYM(he), "xmalloc") && in test4()
451 !strcmp(COMM(he), "bash") && he->stat.period == 100); in test4()
464 struct hist_entry *he; in test5() local
503 he = rb_entry(node, struct hist_entry, rb_node); in test5()
506 CPU(he) == 0 && PID(he) == 100 && in test5()
507 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "[kernel]") && in test5()
508 !strcmp(SYM(he), "schedule") && he->stat.period == 100); in test5()
511 he = rb_entry(node, struct hist_entry, rb_node); in test5()
513 CPU(he) == 2 && PID(he) == 200 && in test5()
514 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "[kernel]") && in test5()
515 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test5()
518 he = rb_entry(node, struct hist_entry, rb_node); in test5()
520 CPU(he) == 1 && PID(he) == 300 && in test5()
521 !strcmp(COMM(he), "bash") && !strcmp(DSO(he), "[kernel]") && in test5()
522 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test5()
525 he = rb_entry(node, struct hist_entry, rb_node); in test5()
527 CPU(he) == 0 && PID(he) == 300 && in test5()
528 !strcmp(COMM(he), "bash") && !strcmp(DSO(he), "bash") && in test5()
529 !strcmp(SYM(he), "xmalloc") && he->stat.period == 100); in test5()
532 he = rb_entry(node, struct hist_entry, rb_node); in test5()
534 CPU(he) == 3 && PID(he) == 300 && in test5()
535 !strcmp(COMM(he), "bash") && !strcmp(DSO(he), "bash") && in test5()
536 !strcmp(SYM(he), "main") && he->stat.period == 100); in test5()
539 he = rb_entry(node, struct hist_entry, rb_node); in test5()
541 CPU(he) == 1 && PID(he) == 100 && in test5()
542 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "libc") && in test5()
543 !strcmp(SYM(he), "malloc") && he->stat.period == 100); in test5()
546 he = rb_entry(node, struct hist_entry, rb_node); in test5()
548 CPU(he) == 2 && PID(he) == 100 && in test5()
549 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "libc") && in test5()
550 !strcmp(SYM(he), "free") && he->stat.period == 100); in test5()
553 he = rb_entry(node, struct hist_entry, rb_node); in test5()
555 CPU(he) == 1 && PID(he) == 100 && in test5()
556 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "perf") && in test5()
557 !strcmp(SYM(he), "cmd_record") && he->stat.period == 100); in test5()
560 he = rb_entry(node, struct hist_entry, rb_node); in test5()
562 CPU(he) == 1 && PID(he) == 100 && in test5()
563 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "perf") && in test5()
564 !strcmp(SYM(he), "main") && he->stat.period == 100); in test5()
567 he = rb_entry(node, struct hist_entry, rb_node); in test5()
569 CPU(he) == 2 && PID(he) == 200 && in test5()
570 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "perf") && in test5()
571 !strcmp(SYM(he), "main") && he->stat.period == 100); in test5()