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