Lines Matching full:he

82 	struct hist_entry	he;  member
165 return &c2c_he->he; in c2c_he_zalloc()
174 static void c2c_he_free(void *he) in c2c_he_free() argument
178 c2c_he = container_of(he, struct c2c_hist_entry, he); in c2c_he_free()
202 he__get_c2c_hists(struct hist_entry *he, in he__get_c2c_hists() argument
211 c2c_he = container_of(he, struct c2c_hist_entry, he); in he__get_c2c_hists()
287 struct hist_entry *he; in process_sample_event() local
325 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
328 if (he == NULL) in process_sample_event()
331 c2c_he = container_of(he, struct c2c_hist_entry, he); in process_sample_event()
338 hists__inc_nr_samples(&c2c_hists->hists, he->filtered); in process_sample_event()
339 ret = hist_entry__append_callchain(he, sample); in process_sample_event()
355 c2c_hists = he__get_c2c_hists(he, c2c.cl_sort, 2, machine->env); in process_sample_event()
359 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
362 if (he == NULL) in process_sample_event()
365 c2c_he = container_of(he, struct c2c_hist_entry, he); in process_sample_event()
375 hists__inc_nr_samples(&c2c_hists->hists, he->filtered); in process_sample_event()
376 ret = hist_entry__append_callchain(he, sample); in process_sample_event()
420 struct hist_entry *he);
422 struct hist_entry *he);
510 struct hist_entry *he) in dcacheline_entry() argument
513 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_entry()
516 if (he->mem_info) in dcacheline_entry()
517 addr = cl_address(mem_info__daddr(he->mem_info)->addr, chk_double_cl); in dcacheline_entry()
524 struct hist_entry *he) in dcacheline_node_entry() argument
527 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_entry()
529 c2c_he = container_of(he, struct c2c_hist_entry, he); in dcacheline_node_entry()
538 struct hist_entry *he) in dcacheline_node_count() argument
541 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_count()
543 c2c_he = container_of(he, struct c2c_hist_entry, he); in dcacheline_node_count()
548 struct hist_entry *he) in offset_entry() argument
551 int width = c2c_width(fmt, hpp, he->hists); in offset_entry()
554 if (he->mem_info) in offset_entry()
555 addr = cl_offset(mem_info__daddr(he->mem_info)->al_addr, chk_double_cl); in offset_entry()
577 struct hist_entry *he) in iaddr_entry() argument
580 int width = c2c_width(fmt, hpp, he->hists); in iaddr_entry()
583 if (he->mem_info) in iaddr_entry()
584 addr = mem_info__iaddr(he->mem_info)->addr; in iaddr_entry()
598 struct hist_entry *he) in tot_hitm_entry() argument
601 int width = c2c_width(fmt, hpp, he->hists); in tot_hitm_entry()
604 c2c_he = container_of(he, struct c2c_hist_entry, he); in tot_hitm_entry()
619 c2c_left = container_of(left, struct c2c_hist_entry, he); in tot_hitm_cmp()
620 c2c_right = container_of(right, struct c2c_hist_entry, he); in tot_hitm_cmp()
631 struct hist_entry *he) \
634 int width = c2c_width(fmt, hpp, he->hists); \
636 c2c_he = container_of(he, struct c2c_hist_entry, he); \
648 c2c_left = container_of(left, struct c2c_hist_entry, he); \
649 c2c_right = container_of(right, struct c2c_hist_entry, he); \
706 struct hist_entry *he) in tot_recs_entry() argument
709 int width = c2c_width(fmt, hpp, he->hists); in tot_recs_entry()
712 c2c_he = container_of(he, struct c2c_hist_entry, he); in tot_recs_entry()
727 c2c_left = container_of(left, struct c2c_hist_entry, he); in tot_recs_cmp()
728 c2c_right = container_of(right, struct c2c_hist_entry, he); in tot_recs_cmp()
744 struct hist_entry *he) in tot_loads_entry() argument
747 int width = c2c_width(fmt, hpp, he->hists); in tot_loads_entry()
750 c2c_he = container_of(he, struct c2c_hist_entry, he); in tot_loads_entry()
765 c2c_left = container_of(left, struct c2c_hist_entry, he); in tot_loads_cmp()
766 c2c_right = container_of(right, struct c2c_hist_entry, he); in tot_loads_cmp()
778 struct hist_entry *he, get_percent_cb get_percent) in percent_color() argument
781 int width = c2c_width(fmt, hpp, he->hists); in percent_color()
784 c2c_he = container_of(he, struct c2c_hist_entry, he); in percent_color()
802 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); in percent_costly_snoop()
840 struct hist_entry *he) in percent_costly_snoop_entry() argument
843 int width = c2c_width(fmt, hpp, he->hists); in percent_costly_snoop_entry()
847 c2c_he = container_of(he, struct c2c_hist_entry, he); in percent_costly_snoop_entry()
854 struct hist_entry *he) in percent_costly_snoop_color() argument
856 return percent_color(fmt, hpp, he, percent_costly_snoop); in percent_costly_snoop_color()
868 c2c_left = container_of(left, struct c2c_hist_entry, he); in percent_costly_snoop_cmp()
869 c2c_right = container_of(right, struct c2c_hist_entry, he); in percent_costly_snoop_cmp()
877 static struct c2c_stats *he_stats(struct hist_entry *he) in he_stats() argument
881 c2c_he = container_of(he, struct c2c_hist_entry, he); in he_stats()
885 static struct c2c_stats *total_stats(struct hist_entry *he) in total_stats() argument
889 hists = container_of(he->hists, struct c2c_hists, hists); in total_stats()
905 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); \
919 struct hist_entry *he) in PERCENT_FN()
921 int width = c2c_width(fmt, hpp, he->hists); in PERCENT_FN()
922 double per = PERCENT(he, rmt_hitm); in PERCENT_FN()
930 struct hist_entry *he) in percent_rmt_hitm_color() argument
932 return percent_color(fmt, hpp, he, percent_rmt_hitm); in percent_rmt_hitm_color()
950 struct hist_entry *he) in percent_lcl_hitm_entry() argument
952 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_hitm_entry()
953 double per = PERCENT(he, lcl_hitm); in percent_lcl_hitm_entry()
961 struct hist_entry *he) in percent_lcl_hitm_color() argument
963 return percent_color(fmt, hpp, he, percent_lcl_hitm); in percent_lcl_hitm_color()
981 struct hist_entry *he) in percent_lcl_peer_entry() argument
983 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_peer_entry()
984 double per = PERCENT(he, lcl_peer); in percent_lcl_peer_entry()
992 struct hist_entry *he) in percent_lcl_peer_color() argument
994 return percent_color(fmt, hpp, he, percent_lcl_peer); in percent_lcl_peer_color()
1012 struct hist_entry *he) in percent_rmt_peer_entry() argument
1014 int width = c2c_width(fmt, hpp, he->hists); in percent_rmt_peer_entry()
1015 double per = PERCENT(he, rmt_peer); in percent_rmt_peer_entry()
1023 struct hist_entry *he) in percent_rmt_peer_color() argument
1025 return percent_color(fmt, hpp, he, percent_rmt_peer); in percent_rmt_peer_color()
1043 struct hist_entry *he) in percent_stores_l1hit_entry() argument
1045 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1hit_entry()
1046 double per = PERCENT(he, st_l1hit); in percent_stores_l1hit_entry()
1054 struct hist_entry *he) in percent_stores_l1hit_color() argument
1056 return percent_color(fmt, hpp, he, percent_st_l1hit); in percent_stores_l1hit_color()
1074 struct hist_entry *he) in percent_stores_l1miss_entry() argument
1076 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1miss_entry()
1077 double per = PERCENT(he, st_l1miss); in percent_stores_l1miss_entry()
1085 struct hist_entry *he) in percent_stores_l1miss_color() argument
1087 return percent_color(fmt, hpp, he, percent_st_l1miss); in percent_stores_l1miss_color()
1105 struct hist_entry *he) in percent_stores_na_entry() argument
1107 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_na_entry()
1108 double per = PERCENT(he, st_na); in percent_stores_na_entry()
1116 struct hist_entry *he) in percent_stores_na_color() argument
1118 return percent_color(fmt, hpp, he, percent_st_na); in percent_stores_na_color()
1139 struct hist_entry *he) in STAT_FN()
1141 int width = c2c_width(fmt, hpp, he->hists); in STAT_FN()
1143 return scnprintf(hpp->buf, hpp->size, "%*d", width, thread__pid(he->thread)); in STAT_FN()
1176 struct hist_entry *he) in node_entry() argument
1183 c2c_he = container_of(he, struct c2c_hist_entry, he); in node_entry()
1272 struct hist_entry *he, double mean) in mean_entry() argument
1274 int width = c2c_width(fmt, hpp, he->hists); in mean_entry()
1283 __func(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, struct hist_entry *he) \
1286 c2c_he = container_of(he, struct c2c_hist_entry, he); \
1287 return mean_entry(fmt, hpp, he, avg_stats(&c2c_he->cstats.__val)); \
1298 struct hist_entry *he) in cpucnt_entry() argument
1301 int width = c2c_width(fmt, hpp, he->hists); in cpucnt_entry()
1304 c2c_he = container_of(he, struct c2c_hist_entry, he); in cpucnt_entry()
1312 struct hist_entry *he) in cl_idx_entry() argument
1315 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_entry()
1318 c2c_he = container_of(he, struct c2c_hist_entry, he); in cl_idx_entry()
1326 struct hist_entry *he) in cl_idx_empty_entry() argument
1328 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_empty_entry()
1903 struct hist_entry *he) in c2c_se_entry() argument
1910 len = hists__col_len(he->hists, dim->se->se_width_idx); in c2c_se_entry()
1913 len = symbol_width(he->hists, dim->se); in c2c_se_entry()
1916 return dim->se->se_snprintf(he, hpp->buf, hpp->size, len); in c2c_se_entry()
2096 static bool he__display(struct hist_entry *he, struct c2c_stats *stats) in he__display() argument
2103 c2c_he = container_of(he, struct c2c_hist_entry, he); in he__display()
2107 he->filtered = filter_display(c2c_he->stats.lcl_hitm, in he__display()
2111 he->filtered = filter_display(c2c_he->stats.rmt_hitm, in he__display()
2115 he->filtered = filter_display(c2c_he->stats.tot_hitm, in he__display()
2119 he->filtered = filter_display(c2c_he->stats.tot_peer, in he__display()
2126 return he->filtered == 0; in he__display()
2129 static inline bool is_valid_hist_entry(struct hist_entry *he) in is_valid_hist_entry() argument
2134 c2c_he = container_of(he, struct c2c_hist_entry, he); in is_valid_hist_entry()
2194 c2c_hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); in calc_width()
2195 hists__calc_col_len(&c2c_hists->hists, &c2c_he->he); in calc_width()
2199 static int filter_cb(struct hist_entry *he, void *arg __maybe_unused) in filter_cb() argument
2203 c2c_he = container_of(he, struct c2c_hist_entry, he); in filter_cb()
2205 if (c2c.show_src && !he->srcline) in filter_cb()
2206 he->srcline = hist_entry__srcline(he); in filter_cb()
2210 if (!is_valid_hist_entry(he)) in filter_cb()
2211 he->filtered = HIST_FILTER__C2C; in filter_cb()
2216 static int resort_cl_cb(struct hist_entry *he, void *arg) in resort_cl_cb() argument
2221 bool display = he__display(he, &c2c.shared_clines_stats); in resort_cl_cb()
2223 c2c_he = container_of(he, struct c2c_hist_entry, he); in resort_cl_cb()
2331 static int resort_shared_cl_cb(struct hist_entry *he, void *arg __maybe_unused) in resort_shared_cl_cb() argument
2334 c2c_he = container_of(he, struct c2c_hist_entry, he); in resort_shared_cl_cb()
2350 struct hist_entry *he; in hists__iterate_cb() local
2352 he = rb_entry(next, struct hist_entry, rb_node); in hists__iterate_cb()
2353 ret = cb(he, arg); in hists__iterate_cb()
2356 next = rb_next(&he->rb_node); in hists__iterate_cb()
2492 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); in print_pareto() local
2495 if (he->filtered) in print_pareto()
2498 c2c_he = container_of(he, struct c2c_hist_entry, he); in print_pareto()
2499 print_cacheline(c2c_he->hists, he, &hpp_list, out); in print_pareto()
2559 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); in c2c_browser__update_nr_entries() local
2561 if (!he->filtered) in c2c_browser__update_nr_entries()
2572 struct hist_entry *he; member
2580 struct hist_entry *he; in perf_c2c_cacheline_browser__title() local
2584 he = cl_browser->he; in perf_c2c_cacheline_browser__title()
2586 if (he->mem_info) in perf_c2c_cacheline_browser__title()
2587 addr = cl_address(mem_info__daddr(he->mem_info)->addr, chk_double_cl); in perf_c2c_cacheline_browser__title()
2594 c2c_cacheline_browser__new(struct hists *hists, struct hist_entry *he) in c2c_cacheline_browser__new() argument
2603 browser->he = he; in c2c_cacheline_browser__new()
2609 static int perf_c2c__browse_cacheline(struct hist_entry *he) in perf_c2c__browse_cacheline() argument
2622 if (!he) in perf_c2c__browse_cacheline()
2628 c2c_he = container_of(he, struct c2c_hist_entry, he); in perf_c2c__browse_cacheline()
2631 cl_browser = c2c_cacheline_browser__new(&c2c_hists->hists, he); in perf_c2c__browse_cacheline()