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()
201 he__get_c2c_hists(struct hist_entry *he, in he__get_c2c_hists() argument
209 c2c_he = container_of(he, struct c2c_hist_entry, he); in he__get_c2c_hists()
285 struct hist_entry *he; in process_sample_event() local
323 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
326 if (he == NULL) in process_sample_event()
329 c2c_he = container_of(he, struct c2c_hist_entry, he); in process_sample_event()
336 hists__inc_nr_samples(&c2c_hists->hists, he->filtered); in process_sample_event()
337 ret = hist_entry__append_callchain(he, sample); in process_sample_event()
353 c2c_hists = he__get_c2c_hists(he, c2c.cl_sort, 2); in process_sample_event()
357 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
360 if (he == NULL) in process_sample_event()
363 c2c_he = container_of(he, struct c2c_hist_entry, he); in process_sample_event()
373 hists__inc_nr_samples(&c2c_hists->hists, he->filtered); in process_sample_event()
374 ret = hist_entry__append_callchain(he, sample); in process_sample_event()
418 struct hist_entry *he);
420 struct hist_entry *he);
508 struct hist_entry *he) in dcacheline_entry() argument
511 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_entry()
514 if (he->mem_info) in dcacheline_entry()
515 addr = cl_address(mem_info__daddr(he->mem_info)->addr, chk_double_cl); in dcacheline_entry()
522 struct hist_entry *he) in dcacheline_node_entry() argument
525 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_entry()
527 c2c_he = container_of(he, struct c2c_hist_entry, he); in dcacheline_node_entry()
536 struct hist_entry *he) in dcacheline_node_count() argument
539 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_count()
541 c2c_he = container_of(he, struct c2c_hist_entry, he); in dcacheline_node_count()
546 struct hist_entry *he) in offset_entry() argument
549 int width = c2c_width(fmt, hpp, he->hists); in offset_entry()
552 if (he->mem_info) in offset_entry()
553 addr = cl_offset(mem_info__daddr(he->mem_info)->al_addr, chk_double_cl); in offset_entry()
575 struct hist_entry *he) in iaddr_entry() argument
578 int width = c2c_width(fmt, hpp, he->hists); in iaddr_entry()
581 if (he->mem_info) in iaddr_entry()
582 addr = mem_info__iaddr(he->mem_info)->addr; in iaddr_entry()
596 struct hist_entry *he) in tot_hitm_entry() argument
599 int width = c2c_width(fmt, hpp, he->hists); in tot_hitm_entry()
602 c2c_he = container_of(he, struct c2c_hist_entry, he); in tot_hitm_entry()
617 c2c_left = container_of(left, struct c2c_hist_entry, he); in tot_hitm_cmp()
618 c2c_right = container_of(right, struct c2c_hist_entry, he); in tot_hitm_cmp()
629 struct hist_entry *he) \
632 int width = c2c_width(fmt, hpp, he->hists); \
634 c2c_he = container_of(he, struct c2c_hist_entry, he); \
646 c2c_left = container_of(left, struct c2c_hist_entry, he); \
647 c2c_right = container_of(right, struct c2c_hist_entry, he); \
704 struct hist_entry *he) in tot_recs_entry() argument
707 int width = c2c_width(fmt, hpp, he->hists); in tot_recs_entry()
710 c2c_he = container_of(he, struct c2c_hist_entry, he); in tot_recs_entry()
725 c2c_left = container_of(left, struct c2c_hist_entry, he); in tot_recs_cmp()
726 c2c_right = container_of(right, struct c2c_hist_entry, he); in tot_recs_cmp()
742 struct hist_entry *he) in tot_loads_entry() argument
745 int width = c2c_width(fmt, hpp, he->hists); in tot_loads_entry()
748 c2c_he = container_of(he, struct c2c_hist_entry, he); in tot_loads_entry()
763 c2c_left = container_of(left, struct c2c_hist_entry, he); in tot_loads_cmp()
764 c2c_right = container_of(right, struct c2c_hist_entry, he); in tot_loads_cmp()
776 struct hist_entry *he, get_percent_cb get_percent) in percent_color() argument
779 int width = c2c_width(fmt, hpp, he->hists); in percent_color()
782 c2c_he = container_of(he, struct c2c_hist_entry, he); in percent_color()
800 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); in percent_costly_snoop()
838 struct hist_entry *he) in percent_costly_snoop_entry() argument
841 int width = c2c_width(fmt, hpp, he->hists); in percent_costly_snoop_entry()
845 c2c_he = container_of(he, struct c2c_hist_entry, he); in percent_costly_snoop_entry()
852 struct hist_entry *he) in percent_costly_snoop_color() argument
854 return percent_color(fmt, hpp, he, percent_costly_snoop); in percent_costly_snoop_color()
866 c2c_left = container_of(left, struct c2c_hist_entry, he); in percent_costly_snoop_cmp()
867 c2c_right = container_of(right, struct c2c_hist_entry, he); in percent_costly_snoop_cmp()
875 static struct c2c_stats *he_stats(struct hist_entry *he) in he_stats() argument
879 c2c_he = container_of(he, struct c2c_hist_entry, he); in he_stats()
883 static struct c2c_stats *total_stats(struct hist_entry *he) in total_stats() argument
887 hists = container_of(he->hists, struct c2c_hists, hists); in total_stats()
903 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); \
917 struct hist_entry *he) in PERCENT_FN()
919 int width = c2c_width(fmt, hpp, he->hists); in PERCENT_FN()
920 double per = PERCENT(he, rmt_hitm); in PERCENT_FN()
928 struct hist_entry *he) in percent_rmt_hitm_color() argument
930 return percent_color(fmt, hpp, he, percent_rmt_hitm); in percent_rmt_hitm_color()
948 struct hist_entry *he) in percent_lcl_hitm_entry() argument
950 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_hitm_entry()
951 double per = PERCENT(he, lcl_hitm); in percent_lcl_hitm_entry()
959 struct hist_entry *he) in percent_lcl_hitm_color() argument
961 return percent_color(fmt, hpp, he, percent_lcl_hitm); in percent_lcl_hitm_color()
979 struct hist_entry *he) in percent_lcl_peer_entry() argument
981 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_peer_entry()
982 double per = PERCENT(he, lcl_peer); in percent_lcl_peer_entry()
990 struct hist_entry *he) in percent_lcl_peer_color() argument
992 return percent_color(fmt, hpp, he, percent_lcl_peer); in percent_lcl_peer_color()
1010 struct hist_entry *he) in percent_rmt_peer_entry() argument
1012 int width = c2c_width(fmt, hpp, he->hists); in percent_rmt_peer_entry()
1013 double per = PERCENT(he, rmt_peer); in percent_rmt_peer_entry()
1021 struct hist_entry *he) in percent_rmt_peer_color() argument
1023 return percent_color(fmt, hpp, he, percent_rmt_peer); in percent_rmt_peer_color()
1041 struct hist_entry *he) in percent_stores_l1hit_entry() argument
1043 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1hit_entry()
1044 double per = PERCENT(he, st_l1hit); in percent_stores_l1hit_entry()
1052 struct hist_entry *he) in percent_stores_l1hit_color() argument
1054 return percent_color(fmt, hpp, he, percent_st_l1hit); in percent_stores_l1hit_color()
1072 struct hist_entry *he) in percent_stores_l1miss_entry() argument
1074 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1miss_entry()
1075 double per = PERCENT(he, st_l1miss); in percent_stores_l1miss_entry()
1083 struct hist_entry *he) in percent_stores_l1miss_color() argument
1085 return percent_color(fmt, hpp, he, percent_st_l1miss); in percent_stores_l1miss_color()
1103 struct hist_entry *he) in percent_stores_na_entry() argument
1105 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_na_entry()
1106 double per = PERCENT(he, st_na); in percent_stores_na_entry()
1114 struct hist_entry *he) in percent_stores_na_color() argument
1116 return percent_color(fmt, hpp, he, percent_st_na); in percent_stores_na_color()
1137 struct hist_entry *he) in STAT_FN()
1139 int width = c2c_width(fmt, hpp, he->hists); in STAT_FN()
1141 return scnprintf(hpp->buf, hpp->size, "%*d", width, thread__pid(he->thread)); in STAT_FN()
1174 struct hist_entry *he) in node_entry() argument
1181 c2c_he = container_of(he, struct c2c_hist_entry, he); in node_entry()
1270 struct hist_entry *he, double mean) in mean_entry() argument
1272 int width = c2c_width(fmt, hpp, he->hists); in mean_entry()
1281 __func(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, struct hist_entry *he) \
1284 c2c_he = container_of(he, struct c2c_hist_entry, he); \
1285 return mean_entry(fmt, hpp, he, avg_stats(&c2c_he->cstats.__val)); \
1296 struct hist_entry *he) in cpucnt_entry() argument
1299 int width = c2c_width(fmt, hpp, he->hists); in cpucnt_entry()
1302 c2c_he = container_of(he, struct c2c_hist_entry, he); in cpucnt_entry()
1310 struct hist_entry *he) in cl_idx_entry() argument
1313 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_entry()
1316 c2c_he = container_of(he, struct c2c_hist_entry, he); in cl_idx_entry()
1324 struct hist_entry *he) in cl_idx_empty_entry() argument
1326 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_empty_entry()
1901 struct hist_entry *he) in c2c_se_entry() argument
1908 len = hists__col_len(he->hists, dim->se->se_width_idx); in c2c_se_entry()
1911 len = symbol_width(he->hists, dim->se); in c2c_se_entry()
1914 return dim->se->se_snprintf(he, hpp->buf, hpp->size, len); in c2c_se_entry()
2089 static bool he__display(struct hist_entry *he, struct c2c_stats *stats) in he__display() argument
2096 c2c_he = container_of(he, struct c2c_hist_entry, he); in he__display()
2100 he->filtered = filter_display(c2c_he->stats.lcl_hitm, in he__display()
2104 he->filtered = filter_display(c2c_he->stats.rmt_hitm, in he__display()
2108 he->filtered = filter_display(c2c_he->stats.tot_hitm, in he__display()
2112 he->filtered = filter_display(c2c_he->stats.tot_peer, in he__display()
2119 return he->filtered == 0; in he__display()
2122 static inline bool is_valid_hist_entry(struct hist_entry *he) in is_valid_hist_entry() argument
2127 c2c_he = container_of(he, struct c2c_hist_entry, he); in is_valid_hist_entry()
2187 c2c_hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); in calc_width()
2188 hists__calc_col_len(&c2c_hists->hists, &c2c_he->he); in calc_width()
2192 static int filter_cb(struct hist_entry *he, void *arg __maybe_unused) in filter_cb() argument
2196 c2c_he = container_of(he, struct c2c_hist_entry, he); in filter_cb()
2198 if (c2c.show_src && !he->srcline) in filter_cb()
2199 he->srcline = hist_entry__srcline(he); in filter_cb()
2203 if (!is_valid_hist_entry(he)) in filter_cb()
2204 he->filtered = HIST_FILTER__C2C; in filter_cb()
2209 static int resort_cl_cb(struct hist_entry *he, void *arg __maybe_unused) in resort_cl_cb() argument
2213 bool display = he__display(he, &c2c.shared_clines_stats); in resort_cl_cb()
2215 c2c_he = container_of(he, struct c2c_hist_entry, he); in resort_cl_cb()
2322 static int resort_shared_cl_cb(struct hist_entry *he, void *arg __maybe_unused) in resort_shared_cl_cb() argument
2325 c2c_he = container_of(he, struct c2c_hist_entry, he); in resort_shared_cl_cb()
2341 struct hist_entry *he; in hists__iterate_cb() local
2343 he = rb_entry(next, struct hist_entry, rb_node); in hists__iterate_cb()
2344 ret = cb(he, NULL); in hists__iterate_cb()
2347 next = rb_next(&he->rb_node); in hists__iterate_cb()
2483 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); in print_pareto() local
2486 if (he->filtered) in print_pareto()
2489 c2c_he = container_of(he, struct c2c_hist_entry, he); in print_pareto()
2490 print_cacheline(c2c_he->hists, he, &hpp_list, out); in print_pareto()
2550 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); in c2c_browser__update_nr_entries() local
2552 if (!he->filtered) in c2c_browser__update_nr_entries()
2563 struct hist_entry *he; member
2571 struct hist_entry *he; in perf_c2c_cacheline_browser__title() local
2575 he = cl_browser->he; in perf_c2c_cacheline_browser__title()
2577 if (he->mem_info) in perf_c2c_cacheline_browser__title()
2578 addr = cl_address(mem_info__daddr(he->mem_info)->addr, chk_double_cl); in perf_c2c_cacheline_browser__title()
2585 c2c_cacheline_browser__new(struct hists *hists, struct hist_entry *he) in c2c_cacheline_browser__new() argument
2594 browser->he = he; in c2c_cacheline_browser__new()
2600 static int perf_c2c__browse_cacheline(struct hist_entry *he) in perf_c2c__browse_cacheline() argument
2613 if (!he) in perf_c2c__browse_cacheline()
2619 c2c_he = container_of(he, struct c2c_hist_entry, he); in perf_c2c__browse_cacheline()
2622 cl_browser = c2c_cacheline_browser__new(&c2c_hists->hists, he); in perf_c2c__browse_cacheline()