Lines Matching refs:branch_info

408 	if (!left->branch_info->srcline_from)  in sort__srcline_from_cmp()
409 left->branch_info->srcline_from = addr_map_symbol__srcline(&left->branch_info->from); in sort__srcline_from_cmp()
411 if (!right->branch_info->srcline_from) in sort__srcline_from_cmp()
412 right->branch_info->srcline_from = addr_map_symbol__srcline(&right->branch_info->from); in sort__srcline_from_cmp()
414 return strcmp(right->branch_info->srcline_from, left->branch_info->srcline_from); in sort__srcline_from_cmp()
420 return repsep_snprintf(bf, size, "%-*.*s", width, width, he->branch_info->srcline_from); in hist_entry__srcline_from_snprintf()
435 if (!left->branch_info->srcline_to) in sort__srcline_to_cmp()
436 left->branch_info->srcline_to = addr_map_symbol__srcline(&left->branch_info->to); in sort__srcline_to_cmp()
438 if (!right->branch_info->srcline_to) in sort__srcline_to_cmp()
439 right->branch_info->srcline_to = addr_map_symbol__srcline(&right->branch_info->to); in sort__srcline_to_cmp()
441 return strcmp(right->branch_info->srcline_to, left->branch_info->srcline_to); in sort__srcline_to_cmp()
447 return repsep_snprintf(bf, size, "%-*.*s", width, width, he->branch_info->srcline_to); in hist_entry__srcline_to_snprintf()
815 if (!left->branch_info || !right->branch_info) in sort__dso_from_cmp()
816 return cmp_null(left->branch_info, right->branch_info); in sort__dso_from_cmp()
818 return _sort__dso_cmp(left->branch_info->from.ms.map, in sort__dso_from_cmp()
819 right->branch_info->from.ms.map); in sort__dso_from_cmp()
825 if (he->branch_info) in hist_entry__dso_from_snprintf()
826 return _hist_entry__dso_snprintf(he->branch_info->from.ms.map, in hist_entry__dso_from_snprintf()
840 return dso && (!he->branch_info || !he->branch_info->from.ms.map || in hist_entry__dso_from_filter()
841 he->branch_info->from.ms.map->dso != dso); in hist_entry__dso_from_filter()
847 if (!left->branch_info || !right->branch_info) in sort__dso_to_cmp()
848 return cmp_null(left->branch_info, right->branch_info); in sort__dso_to_cmp()
850 return _sort__dso_cmp(left->branch_info->to.ms.map, in sort__dso_to_cmp()
851 right->branch_info->to.ms.map); in sort__dso_to_cmp()
857 if (he->branch_info) in hist_entry__dso_to_snprintf()
858 return _hist_entry__dso_snprintf(he->branch_info->to.ms.map, in hist_entry__dso_to_snprintf()
872 return dso && (!he->branch_info || !he->branch_info->to.ms.map || in hist_entry__dso_to_filter()
873 he->branch_info->to.ms.map->dso != dso); in hist_entry__dso_to_filter()
879 struct addr_map_symbol *from_l = &left->branch_info->from; in sort__sym_from_cmp()
880 struct addr_map_symbol *from_r = &right->branch_info->from; in sort__sym_from_cmp()
882 if (!left->branch_info || !right->branch_info) in sort__sym_from_cmp()
883 return cmp_null(left->branch_info, right->branch_info); in sort__sym_from_cmp()
885 from_l = &left->branch_info->from; in sort__sym_from_cmp()
886 from_r = &right->branch_info->from; in sort__sym_from_cmp()
899 if (!left->branch_info || !right->branch_info) in sort__sym_to_cmp()
900 return cmp_null(left->branch_info, right->branch_info); in sort__sym_to_cmp()
902 to_l = &left->branch_info->to; in sort__sym_to_cmp()
903 to_r = &right->branch_info->to; in sort__sym_to_cmp()
914 if (he->branch_info) { in hist_entry__sym_from_snprintf()
915 struct addr_map_symbol *from = &he->branch_info->from; in hist_entry__sym_from_snprintf()
927 if (he->branch_info) { in hist_entry__sym_to_snprintf()
928 struct addr_map_symbol *to = &he->branch_info->to; in hist_entry__sym_to_snprintf()
945 return sym && !(he->branch_info && he->branch_info->from.ms.sym && in hist_entry__sym_from_filter()
946 strstr(he->branch_info->from.ms.sym->name, sym)); in hist_entry__sym_from_filter()
957 return sym && !(he->branch_info && he->branch_info->to.ms.sym && in hist_entry__sym_to_filter()
958 strstr(he->branch_info->to.ms.sym->name, sym)); in hist_entry__sym_to_filter()
998 if (!left->branch_info || !right->branch_info) in sort__mispredict_cmp()
999 return cmp_null(left->branch_info, right->branch_info); in sort__mispredict_cmp()
1001 mp = left->branch_info->flags.mispred != right->branch_info->flags.mispred; in sort__mispredict_cmp()
1002 p = left->branch_info->flags.predicted != right->branch_info->flags.predicted; in sort__mispredict_cmp()
1010 if (he->branch_info) { in hist_entry__mispredict_snprintf()
1011 if (he->branch_info->flags.predicted) in hist_entry__mispredict_snprintf()
1013 else if (he->branch_info->flags.mispred) in hist_entry__mispredict_snprintf()
1023 if (!left->branch_info || !right->branch_info) in sort__cycles_cmp()
1024 return cmp_null(left->branch_info, right->branch_info); in sort__cycles_cmp()
1026 return left->branch_info->flags.cycles - in sort__cycles_cmp()
1027 right->branch_info->flags.cycles; in sort__cycles_cmp()
1033 if (!he->branch_info) in hist_entry__cycles_snprintf()
1035 if (he->branch_info->flags.cycles == 0) in hist_entry__cycles_snprintf()
1038 he->branch_info->flags.cycles); in hist_entry__cycles_snprintf()
1602 if (!left->branch_info || !right->branch_info) in sort__abort_cmp()
1603 return cmp_null(left->branch_info, right->branch_info); in sort__abort_cmp()
1605 return left->branch_info->flags.abort != in sort__abort_cmp()
1606 right->branch_info->flags.abort; in sort__abort_cmp()
1614 if (he->branch_info) { in hist_entry__abort_snprintf()
1615 if (he->branch_info->flags.abort) in hist_entry__abort_snprintf()
1634 if (!left->branch_info || !right->branch_info) in sort__in_tx_cmp()
1635 return cmp_null(left->branch_info, right->branch_info); in sort__in_tx_cmp()
1637 return left->branch_info->flags.in_tx != in sort__in_tx_cmp()
1638 right->branch_info->flags.in_tx; in sort__in_tx_cmp()
1646 if (he->branch_info) { in hist_entry__in_tx_snprintf()
1647 if (he->branch_info->flags.in_tx) in hist_entry__in_tx_snprintf()