Lines Matching refs:he
60 struct hist_entry *he = in hist_browser__get_folding() local
63 if (he->ms.unfolded) in hist_browser__get_folding()
64 unfolded_rows += he->nr_rows; in hist_browser__get_folding()
144 static char hist_entry__folded(const struct hist_entry *he) in hist_entry__folded() argument
146 return map_symbol__folded(&he->ms); in hist_entry__folded()
276 static void hist_entry__init_have_children(struct hist_entry *he) in hist_entry__init_have_children() argument
278 if (!he->init_have_children) { in hist_entry__init_have_children()
279 he->ms.has_children = !RB_EMPTY_ROOT(&he->sorted_chain); in hist_entry__init_have_children()
280 callchain__init_have_children(&he->sorted_chain); in hist_entry__init_have_children()
281 he->init_have_children = true; in hist_entry__init_have_children()
288 struct hist_entry *he = browser->he_selection; in hist_browser__toggle_fold() local
290 hist_entry__init_have_children(he); in hist_browser__toggle_fold()
291 browser->b.nr_entries -= he->nr_rows; in hist_browser__toggle_fold()
292 browser->nr_callchain_rows -= he->nr_rows; in hist_browser__toggle_fold()
294 if (he->ms.unfolded) in hist_browser__toggle_fold()
295 he->nr_rows = callchain__count_rows(&he->sorted_chain); in hist_browser__toggle_fold()
297 he->nr_rows = 0; in hist_browser__toggle_fold()
299 browser->b.nr_entries += he->nr_rows; in hist_browser__toggle_fold()
300 browser->nr_callchain_rows += he->nr_rows; in hist_browser__toggle_fold()
363 static void hist_entry__set_folding(struct hist_entry *he, bool unfold) in hist_entry__set_folding() argument
365 hist_entry__init_have_children(he); in hist_entry__set_folding()
366 map_symbol__set_folding(&he->ms, unfold); in hist_entry__set_folding()
368 if (he->ms.has_children) { in hist_entry__set_folding()
369 int n = callchain__set_folding(&he->sorted_chain, unfold); in hist_entry__set_folding()
370 he->nr_rows = unfold ? n : 0; in hist_entry__set_folding()
372 he->nr_rows = 0; in hist_entry__set_folding()
384 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); in __hist_browser__set_folding() local
385 hist_entry__set_folding(he, unfold); in __hist_browser__set_folding()
386 browser->nr_callchain_rows += he->nr_rows; in __hist_browser__set_folding()
673 static u64 __hpp_get_##_field(struct hist_entry *he) \
675 return he->stat._field; \
681 struct hist_entry *he) \
683 return hpp__fmt(fmt, hpp, he, __hpp_get_##_field, " %*.2f%%", \
688 static u64 __hpp_get_acc_##_field(struct hist_entry *he) \
690 return he->stat_acc->_field; \
696 struct hist_entry *he) \
706 return hpp__fmt(fmt, hpp, he, __hpp_get_acc_##_field, \
1091 struct hist_entry *he, FILE *fp) in hist_browser__fprintf_callchain() argument
1093 u64 total = hists__total_period(he->hists); in hist_browser__fprintf_callchain()
1099 total = he->stat_acc->period; in hist_browser__fprintf_callchain()
1101 hist_browser__show_callchain(browser, &he->sorted_chain, 1, 0, total, in hist_browser__fprintf_callchain()
1108 struct hist_entry *he, FILE *fp) in hist_browser__fprintf_entry() argument
1122 folded_sign = hist_entry__folded(he); in hist_browser__fprintf_entry()
1137 ret = fmt->entry(fmt, &hpp, he); in hist_browser__fprintf_entry()
1143 printed += hist_browser__fprintf_callchain(browser, he, fp); in hist_browser__fprintf_entry()
1707 struct hist_entry *he; in perf_evsel__hists_browse() local
1715 he = hist_browser__selected_entry(browser); in perf_evsel__hists_browse()
1716 if (he == NULL) in perf_evsel__hists_browse()
1720 ms.map = he->branch_info->from.map; in perf_evsel__hists_browse()
1721 ms.sym = he->branch_info->from.sym; in perf_evsel__hists_browse()
1723 ms.map = he->branch_info->to.map; in perf_evsel__hists_browse()
1724 ms.sym = he->branch_info->to.sym; in perf_evsel__hists_browse()