• Home
  • Raw
  • Download

Lines Matching refs:he

11 				       struct hist_entry *he);
13 struct hist_entry *he);
15 struct hist_entry *he);
181 static void hist_entry__add_cpumode_period(struct hist_entry *he, in hist_entry__add_cpumode_period() argument
186 he->stat.period_sys += period; in hist_entry__add_cpumode_period()
189 he->stat.period_us += period; in hist_entry__add_cpumode_period()
192 he->stat.period_guest_sys += period; in hist_entry__add_cpumode_period()
195 he->stat.period_guest_us += period; in hist_entry__add_cpumode_period()
222 static void hist_entry__decay(struct hist_entry *he) in hist_entry__decay() argument
224 he->stat.period = (he->stat.period * 7) / 8; in hist_entry__decay()
225 he->stat.nr_events = (he->stat.nr_events * 7) / 8; in hist_entry__decay()
229 static bool hists__decay_entry(struct hists *hists, struct hist_entry *he) in hists__decay_entry() argument
231 u64 prev_period = he->stat.period; in hists__decay_entry()
236 hist_entry__decay(he); in hists__decay_entry()
238 if (!he->filtered) in hists__decay_entry()
239 hists->stats.total_period -= prev_period - he->stat.period; in hists__decay_entry()
241 return he->stat.period == 0; in hists__decay_entry()
279 struct hist_entry *he = zalloc(sizeof(*he) + callchain_size); in hist_entry__new() local
281 if (he != NULL) { in hist_entry__new()
282 *he = *template; in hist_entry__new()
284 if (he->ms.map) in hist_entry__new()
285 he->ms.map->referenced = true; in hist_entry__new()
287 if (he->branch_info) { in hist_entry__new()
293 he->branch_info = malloc(sizeof(*he->branch_info)); in hist_entry__new()
294 if (he->branch_info == NULL) { in hist_entry__new()
295 free(he); in hist_entry__new()
299 memcpy(he->branch_info, template->branch_info, in hist_entry__new()
300 sizeof(*he->branch_info)); in hist_entry__new()
302 if (he->branch_info->from.map) in hist_entry__new()
303 he->branch_info->from.map->referenced = true; in hist_entry__new()
304 if (he->branch_info->to.map) in hist_entry__new()
305 he->branch_info->to.map->referenced = true; in hist_entry__new()
308 if (he->mem_info) { in hist_entry__new()
309 if (he->mem_info->iaddr.map) in hist_entry__new()
310 he->mem_info->iaddr.map->referenced = true; in hist_entry__new()
311 if (he->mem_info->daddr.map) in hist_entry__new()
312 he->mem_info->daddr.map->referenced = true; in hist_entry__new()
316 callchain_init(he->callchain); in hist_entry__new()
318 INIT_LIST_HEAD(&he->pairs.node); in hist_entry__new()
321 return he; in hist_entry__new()
348 struct hist_entry *he; in add_hist_entry() local
355 he = rb_entry(parent, struct hist_entry, rb_node_in); in add_hist_entry()
363 cmp = hist_entry__cmp(he, entry); in add_hist_entry()
366 he_stat__add_period(&he->stat, period, weight); in add_hist_entry()
380 if (he->ms.map != entry->ms.map) { in add_hist_entry()
381 he->ms.map = entry->ms.map; in add_hist_entry()
382 if (he->ms.map) in add_hist_entry()
383 he->ms.map->referenced = true; in add_hist_entry()
394 he = hist_entry__new(entry); in add_hist_entry()
395 if (!he) in add_hist_entry()
398 rb_link_node(&he->rb_node_in, parent, p); in add_hist_entry()
399 rb_insert_color(&he->rb_node_in, hists->entries_in); in add_hist_entry()
401 hist_entry__add_cpumode_period(he, al->cpumode, period); in add_hist_entry()
402 return he; in add_hist_entry()
529 void hist_entry__free(struct hist_entry *he) in hist_entry__free() argument
531 free(he->branch_info); in hist_entry__free()
532 free(he->mem_info); in hist_entry__free()
533 free(he); in hist_entry__free()
542 struct hist_entry *he) in hists__collapse_insert_entry() argument
553 cmp = hist_entry__collapse(iter, he); in hists__collapse_insert_entry()
556 he_stat__add_stat(&iter->stat, &he->stat); in hists__collapse_insert_entry()
562 he->callchain); in hists__collapse_insert_entry()
564 hist_entry__free(he); in hists__collapse_insert_entry()
574 rb_link_node(&he->rb_node_in, parent, p); in hists__collapse_insert_entry()
575 rb_insert_color(&he->rb_node_in, root); in hists__collapse_insert_entry()
594 static void hists__apply_filters(struct hists *hists, struct hist_entry *he) in hists__apply_filters() argument
596 hists__filter_entry_by_dso(hists, he); in hists__apply_filters()
597 hists__filter_entry_by_thread(hists, he); in hists__apply_filters()
598 hists__filter_entry_by_symbol(hists, he); in hists__apply_filters()
692 struct hist_entry *he, in __hists__insert_output_entry() argument
700 callchain_param.sort(&he->sorted_chain, he->callchain, in __hists__insert_output_entry()
707 if (hist_entry__sort_on_period(he, iter) > 0) in __hists__insert_output_entry()
713 rb_link_node(&he->rb_node, parent, p); in __hists__insert_output_entry()
714 rb_insert_color(&he->rb_node, entries); in __hists__insert_output_entry()
766 struct hist_entry *he) in hists__filter_entry_by_dso() argument
769 (he->ms.map == NULL || he->ms.map->dso != hists->dso_filter)) { in hists__filter_entry_by_dso()
770 he->filtered |= (1 << HIST_FILTER__DSO); in hists__filter_entry_by_dso()
799 struct hist_entry *he) in hists__filter_entry_by_thread() argument
802 he->thread != hists->thread_filter) { in hists__filter_entry_by_thread()
803 he->filtered |= (1 << HIST_FILTER__THREAD); in hists__filter_entry_by_thread()
829 struct hist_entry *he) in hists__filter_entry_by_symbol() argument
832 (!he->ms.sym || strstr(he->ms.sym->name, in hists__filter_entry_by_symbol()
834 he->filtered |= (1 << HIST_FILTER__SYMBOL); in hists__filter_entry_by_symbol()
859 int hist_entry__inc_addr_samples(struct hist_entry *he, int evidx, u64 ip) in hist_entry__inc_addr_samples() argument
861 return symbol__inc_addr_samples(he->ms.sym, he->ms.map, evidx, ip); in hist_entry__inc_addr_samples()
864 int hist_entry__annotate(struct hist_entry *he, size_t privsize) in hist_entry__annotate() argument
866 return symbol__annotate(he->ms.sym, he->ms.map, privsize); in hist_entry__annotate()
886 struct hist_entry *he; in hists__add_dummy_entry() local
898 he = rb_entry(parent, struct hist_entry, rb_node_in); in hists__add_dummy_entry()
900 cmp = hist_entry__collapse(he, pair); in hists__add_dummy_entry()
911 he = hist_entry__new(pair); in hists__add_dummy_entry()
912 if (he) { in hists__add_dummy_entry()
913 memset(&he->stat, 0, sizeof(he->stat)); in hists__add_dummy_entry()
914 he->hists = hists; in hists__add_dummy_entry()
915 rb_link_node(&he->rb_node_in, parent, p); in hists__add_dummy_entry()
916 rb_insert_color(&he->rb_node_in, root); in hists__add_dummy_entry()
917 hists__inc_nr_entries(hists, he); in hists__add_dummy_entry()
918 he->dummy = true; in hists__add_dummy_entry()
921 return he; in hists__add_dummy_entry()
925 struct hist_entry *he) in hists__find_entry() argument
936 int64_t cmp = hist_entry__collapse(iter, he); in hists__find_entry()