Lines Matching refs:branch_info
101 if (h->branch_info) { in hists__calc_col_len()
102 if (h->branch_info->from.sym) { in hists__calc_col_len()
103 symlen = (int)h->branch_info->from.sym->namelen + 4; in hists__calc_col_len()
108 symlen = dso__name_len(h->branch_info->from.map->dso); in hists__calc_col_len()
116 if (h->branch_info->to.sym) { in hists__calc_col_len()
117 symlen = (int)h->branch_info->to.sym->namelen + 4; in hists__calc_col_len()
122 symlen = dso__name_len(h->branch_info->to.map->dso); in hists__calc_col_len()
130 if (h->branch_info->srcline_from) in hists__calc_col_len()
132 strlen(h->branch_info->srcline_from)); in hists__calc_col_len()
133 if (h->branch_info->srcline_to) in hists__calc_col_len()
135 strlen(h->branch_info->srcline_to)); in hists__calc_col_len()
390 if (he->branch_info) { in hist_entry__init()
396 he->branch_info = malloc(sizeof(*he->branch_info)); in hist_entry__init()
397 if (he->branch_info == NULL) { in hist_entry__init()
403 memcpy(he->branch_info, template->branch_info, in hist_entry__init()
404 sizeof(*he->branch_info)); in hist_entry__init()
406 map__get(he->branch_info->from.map); in hist_entry__init()
407 map__get(he->branch_info->to.map); in hist_entry__init()
423 if (he->branch_info) { in hist_entry__init()
424 map__put(he->branch_info->from.map); in hist_entry__init()
425 map__put(he->branch_info->to.map); in hist_entry__init()
426 free(he->branch_info); in hist_entry__init()
586 struct branch_info *bi, in __hists__add_entry()
618 .branch_info = bi, in __hists__add_entry()
634 struct branch_info *bi, in hists__add_entry()
647 struct branch_info *bi, in hists__add_entry_ops()
749 struct branch_info *bi; in iter_prepare_branch_entry()
773 struct branch_info *bi = iter->priv; in iter_next_branch_entry()
791 struct branch_info *bi; in iter_add_next_branch_entry()
1137 if (he->branch_info) { in hist_entry__delete()
1138 map__zput(he->branch_info->from.map); in hist_entry__delete()
1139 map__zput(he->branch_info->to.map); in hist_entry__delete()
1140 free_srcline(he->branch_info->srcline_from); in hist_entry__delete()
1141 free_srcline(he->branch_info->srcline_to); in hist_entry__delete()
1142 zfree(&he->branch_info); in hist_entry__delete()
2413 struct branch_info *bi; in hist__account_cycles()