Lines Matching refs:he
94 struct hist_entry *he; in del_hist_entries() local
109 he = rb_entry(node, struct hist_entry, rb_node); in del_hist_entries()
111 rb_erase_cached(&he->rb_node_in, root_in); in del_hist_entries()
112 hist_entry__delete(he); in del_hist_entries()
118 #define COMM(he) (thread__comm_str(he->thread)) argument
119 #define DSO(he) (he->ms.map->dso->short_name) argument
120 #define SYM(he) (he->ms.sym->name) argument
121 #define CPU(he) (he->cpu) argument
122 #define PID(he) (he->thread->tid) argument
129 struct hist_entry *he; in test1() local
167 he = rb_entry(node, struct hist_entry, rb_node); in test1()
169 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "perf") && in test1()
170 !strcmp(SYM(he), "main") && he->stat.period == 200); in test1()
173 he = rb_entry(node, struct hist_entry, rb_node); in test1()
175 !strcmp(COMM(he), "bash") && !strcmp(DSO(he), "[kernel]") && in test1()
176 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test1()
179 he = rb_entry(node, struct hist_entry, rb_node); in test1()
181 !strcmp(COMM(he), "bash") && !strcmp(DSO(he), "bash") && in test1()
182 !strcmp(SYM(he), "main") && he->stat.period == 100); in test1()
185 he = rb_entry(node, struct hist_entry, rb_node); in test1()
187 !strcmp(COMM(he), "bash") && !strcmp(DSO(he), "bash") && in test1()
188 !strcmp(SYM(he), "xmalloc") && he->stat.period == 100); in test1()
191 he = rb_entry(node, struct hist_entry, rb_node); in test1()
193 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "[kernel]") && in test1()
194 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test1()
197 he = rb_entry(node, struct hist_entry, rb_node); in test1()
199 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "[kernel]") && in test1()
200 !strcmp(SYM(he), "schedule") && he->stat.period == 100); in test1()
203 he = rb_entry(node, struct hist_entry, rb_node); in test1()
205 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "libc") && in test1()
206 !strcmp(SYM(he), "free") && he->stat.period == 100); in test1()
209 he = rb_entry(node, struct hist_entry, rb_node); in test1()
211 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "libc") && in test1()
212 !strcmp(SYM(he), "malloc") && he->stat.period == 100); in test1()
215 he = rb_entry(node, struct hist_entry, rb_node); in test1()
217 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "perf") && in test1()
218 !strcmp(SYM(he), "cmd_record") && he->stat.period == 100); in test1()
231 struct hist_entry *he; in test2() local
267 he = rb_entry(node, struct hist_entry, rb_node); in test2()
269 CPU(he) == 1 && PID(he) == 100 && he->stat.period == 300); in test2()
272 he = rb_entry(node, struct hist_entry, rb_node); in test2()
274 CPU(he) == 0 && PID(he) == 100 && he->stat.period == 100); in test2()
287 struct hist_entry *he; in test3() local
321 he = rb_entry(node, struct hist_entry, rb_node); in test3()
323 !strcmp(COMM(he), "bash") && !strcmp(DSO(he), "bash") && in test3()
324 he->stat.period == 200); in test3()
327 he = rb_entry(node, struct hist_entry, rb_node); in test3()
329 !strcmp(COMM(he), "bash") && !strcmp(DSO(he), "[kernel]") && in test3()
330 he->stat.period == 100); in test3()
333 he = rb_entry(node, struct hist_entry, rb_node); in test3()
335 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "perf") && in test3()
336 he->stat.period == 300); in test3()
339 he = rb_entry(node, struct hist_entry, rb_node); in test3()
341 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "[kernel]") && in test3()
342 he->stat.period == 200); in test3()
345 he = rb_entry(node, struct hist_entry, rb_node); in test3()
347 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "libc") && in test3()
348 he->stat.period == 200); in test3()
361 struct hist_entry *he; in test4() local
399 he = rb_entry(node, struct hist_entry, rb_node); in test4()
401 !strcmp(DSO(he), "perf") && !strcmp(SYM(he), "cmd_record") && in test4()
402 !strcmp(COMM(he), "perf") && he->stat.period == 100); in test4()
405 he = rb_entry(node, struct hist_entry, rb_node); in test4()
407 !strcmp(DSO(he), "libc") && !strcmp(SYM(he), "free") && in test4()
408 !strcmp(COMM(he), "perf") && he->stat.period == 100); in test4()
411 he = rb_entry(node, struct hist_entry, rb_node); in test4()
413 !strcmp(DSO(he), "bash") && !strcmp(SYM(he), "main") && in test4()
414 !strcmp(COMM(he), "bash") && he->stat.period == 100); in test4()
417 he = rb_entry(node, struct hist_entry, rb_node); in test4()
419 !strcmp(DSO(he), "perf") && !strcmp(SYM(he), "main") && in test4()
420 !strcmp(COMM(he), "perf") && he->stat.period == 200); in test4()
423 he = rb_entry(node, struct hist_entry, rb_node); in test4()
425 !strcmp(DSO(he), "libc") && !strcmp(SYM(he), "malloc") && in test4()
426 !strcmp(COMM(he), "perf") && he->stat.period == 100); in test4()
429 he = rb_entry(node, struct hist_entry, rb_node); in test4()
431 !strcmp(DSO(he), "[kernel]") && !strcmp(SYM(he), "page_fault") && in test4()
432 !strcmp(COMM(he), "bash") && he->stat.period == 100); in test4()
435 he = rb_entry(node, struct hist_entry, rb_node); in test4()
437 !strcmp(DSO(he), "[kernel]") && !strcmp(SYM(he), "page_fault") && in test4()
438 !strcmp(COMM(he), "perf") && he->stat.period == 100); in test4()
441 he = rb_entry(node, struct hist_entry, rb_node); in test4()
443 !strcmp(DSO(he), "[kernel]") && !strcmp(SYM(he), "schedule") && in test4()
444 !strcmp(COMM(he), "perf") && he->stat.period == 100); in test4()
447 he = rb_entry(node, struct hist_entry, rb_node); in test4()
449 !strcmp(DSO(he), "bash") && !strcmp(SYM(he), "xmalloc") && in test4()
450 !strcmp(COMM(he), "bash") && he->stat.period == 100); in test4()
463 struct hist_entry *he; in test5() local
502 he = rb_entry(node, struct hist_entry, rb_node); in test5()
505 CPU(he) == 0 && PID(he) == 100 && in test5()
506 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "[kernel]") && in test5()
507 !strcmp(SYM(he), "schedule") && he->stat.period == 100); in test5()
510 he = rb_entry(node, struct hist_entry, rb_node); in test5()
512 CPU(he) == 2 && PID(he) == 200 && in test5()
513 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "[kernel]") && in test5()
514 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test5()
517 he = rb_entry(node, struct hist_entry, rb_node); in test5()
519 CPU(he) == 1 && PID(he) == 300 && in test5()
520 !strcmp(COMM(he), "bash") && !strcmp(DSO(he), "[kernel]") && in test5()
521 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test5()
524 he = rb_entry(node, struct hist_entry, rb_node); in test5()
526 CPU(he) == 0 && PID(he) == 300 && in test5()
527 !strcmp(COMM(he), "bash") && !strcmp(DSO(he), "bash") && in test5()
528 !strcmp(SYM(he), "xmalloc") && he->stat.period == 100); in test5()
531 he = rb_entry(node, struct hist_entry, rb_node); in test5()
533 CPU(he) == 3 && PID(he) == 300 && in test5()
534 !strcmp(COMM(he), "bash") && !strcmp(DSO(he), "bash") && in test5()
535 !strcmp(SYM(he), "main") && he->stat.period == 100); in test5()
538 he = rb_entry(node, struct hist_entry, rb_node); in test5()
540 CPU(he) == 1 && PID(he) == 100 && in test5()
541 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "libc") && in test5()
542 !strcmp(SYM(he), "malloc") && he->stat.period == 100); in test5()
545 he = rb_entry(node, struct hist_entry, rb_node); in test5()
547 CPU(he) == 2 && PID(he) == 100 && in test5()
548 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "libc") && in test5()
549 !strcmp(SYM(he), "free") && he->stat.period == 100); in test5()
552 he = rb_entry(node, struct hist_entry, rb_node); in test5()
554 CPU(he) == 1 && PID(he) == 100 && in test5()
555 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "perf") && in test5()
556 !strcmp(SYM(he), "cmd_record") && he->stat.period == 100); in test5()
559 he = rb_entry(node, struct hist_entry, rb_node); in test5()
561 CPU(he) == 1 && PID(he) == 100 && in test5()
562 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "perf") && in test5()
563 !strcmp(SYM(he), "main") && he->stat.period == 100); in test5()
566 he = rb_entry(node, struct hist_entry, rb_node); in test5()
568 CPU(he) == 2 && PID(he) == 200 && in test5()
569 !strcmp(COMM(he), "perf") && !strcmp(DSO(he), "perf") && in test5()
570 !strcmp(SYM(he), "main") && he->stat.period == 100); in test5()