• Home
  • Raw
  • Download

Lines Matching refs:he

61 static char hist_entry__folded(const struct hist_entry *he)  in hist_entry__folded()  argument
63 return map_symbol__folded(&he->ms); in hist_entry__folded()
186 static void hist_entry__init_have_children(struct hist_entry *he) in hist_entry__init_have_children() argument
188 if (!he->init_have_children) { in hist_entry__init_have_children()
189 he->ms.has_children = !RB_EMPTY_ROOT(&he->sorted_chain); in hist_entry__init_have_children()
190 callchain__init_have_children(&he->sorted_chain); in hist_entry__init_have_children()
191 he->init_have_children = true; in hist_entry__init_have_children()
198 struct hist_entry *he = browser->he_selection; in hist_browser__toggle_fold() local
200 hist_entry__init_have_children(he); in hist_browser__toggle_fold()
201 browser->hists->nr_entries -= he->nr_rows; in hist_browser__toggle_fold()
203 if (he->ms.unfolded) in hist_browser__toggle_fold()
204 he->nr_rows = callchain__count_rows(&he->sorted_chain); in hist_browser__toggle_fold()
206 he->nr_rows = 0; in hist_browser__toggle_fold()
207 browser->hists->nr_entries += he->nr_rows; in hist_browser__toggle_fold()
271 static void hist_entry__set_folding(struct hist_entry *he, bool unfold) in hist_entry__set_folding() argument
273 hist_entry__init_have_children(he); in hist_entry__set_folding()
274 map_symbol__set_folding(&he->ms, unfold); in hist_entry__set_folding()
276 if (he->ms.has_children) { in hist_entry__set_folding()
277 int n = callchain__set_folding(&he->sorted_chain, unfold); in hist_entry__set_folding()
278 he->nr_rows = unfold ? n : 0; in hist_entry__set_folding()
280 he->nr_rows = 0; in hist_entry__set_folding()
290 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); in hists__set_folding() local
291 hist_entry__set_folding(he, unfold); in hists__set_folding()
292 hists->nr_entries += 1 + he->nr_rows; in hists__set_folding()
599 static int __hpp__color_fmt(struct perf_hpp *hpp, struct hist_entry *he, in __hpp__color_fmt() argument
605 struct hists *hists = he->hists; in __hpp__color_fmt()
609 percent = 100.0 * get_field(he) / hists->stats.total_period; in __hpp__color_fmt()
630 list_for_each_entry(pair, &he->pairs.head, pairs.node) { in __hpp__color_fmt()
683 static u64 __hpp_get_##_field(struct hist_entry *he) \
685 return he->stat._field; \
691 struct hist_entry *he) \
693 return __hpp__color_fmt(hpp, he, __hpp_get_##_field, _cb); \
1108 struct hist_entry *he, FILE *fp) in hist_browser__fprintf_entry() argument
1116 folded_sign = hist_entry__folded(he); in hist_browser__fprintf_entry()
1118 hist_entry__sort_snprintf(he, s, sizeof(s), browser->hists); in hist_browser__fprintf_entry()
1119 percent = (he->stat.period * 100.0) / browser->hists->stats.total_period; in hist_browser__fprintf_entry()
1127 printed += fprintf(fp, " %11u", he->stat.nr_events); in hist_browser__fprintf_entry()
1130 printed += fprintf(fp, " %12" PRIu64, he->stat.period); in hist_browser__fprintf_entry()
1135 printed += hist_browser__fprintf_callchain(browser, &he->sorted_chain, 1, fp); in hist_browser__fprintf_entry()
1631 struct hist_entry *he; in perf_evsel__hists_browse() local
1637 he = hist_browser__selected_entry(browser); in perf_evsel__hists_browse()
1638 if (he == NULL) in perf_evsel__hists_browse()
1648 he->ms.sym = he->branch_info->from.sym; in perf_evsel__hists_browse()
1649 he->ms.map = he->branch_info->from.map; in perf_evsel__hists_browse()
1651 he->ms.sym = he->branch_info->to.sym; in perf_evsel__hists_browse()
1652 he->ms.map = he->branch_info->to.map; in perf_evsel__hists_browse()
1658 he->used = true; in perf_evsel__hists_browse()
1659 err = hist_entry__tui_annotate(he, evsel, hbt); in perf_evsel__hists_browse()
1660 he->used = false; in perf_evsel__hists_browse()