Lines Matching refs: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
317 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
320 if (he == NULL) in process_sample_event()
323 c2c_he = container_of(he, struct c2c_hist_entry, he); in process_sample_event()
330 hists__inc_nr_samples(&c2c_hists->hists, he->filtered); in process_sample_event()
331 ret = hist_entry__append_callchain(he, sample); in process_sample_event()
347 c2c_hists = he__get_c2c_hists(he, c2c.cl_sort, 2); in process_sample_event()
351 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
354 if (he == NULL) in process_sample_event()
357 c2c_he = container_of(he, struct c2c_hist_entry, he); in process_sample_event()
367 hists__inc_nr_samples(&c2c_hists->hists, he->filtered); in process_sample_event()
368 ret = hist_entry__append_callchain(he, sample); in process_sample_event()
430 struct hist_entry *he);
432 struct hist_entry *he);
520 struct hist_entry *he) in dcacheline_entry() argument
523 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_entry()
526 if (he->mem_info) in dcacheline_entry()
527 addr = cl_address(he->mem_info->daddr.addr, chk_double_cl); in dcacheline_entry()
534 struct hist_entry *he) in dcacheline_node_entry() argument
537 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_entry()
539 c2c_he = container_of(he, struct c2c_hist_entry, he); in dcacheline_node_entry()
548 struct hist_entry *he) in dcacheline_node_count() argument
551 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_count()
553 c2c_he = container_of(he, struct c2c_hist_entry, he); in dcacheline_node_count()
558 struct hist_entry *he) in offset_entry() argument
561 int width = c2c_width(fmt, hpp, he->hists); in offset_entry()
564 if (he->mem_info) in offset_entry()
565 addr = cl_offset(he->mem_info->daddr.al_addr, chk_double_cl); in offset_entry()
587 struct hist_entry *he) in iaddr_entry() argument
590 int width = c2c_width(fmt, hpp, he->hists); in iaddr_entry()
593 if (he->mem_info) in iaddr_entry()
594 addr = he->mem_info->iaddr.addr; in iaddr_entry()
608 struct hist_entry *he) in tot_hitm_entry() argument
611 int width = c2c_width(fmt, hpp, he->hists); in tot_hitm_entry()
614 c2c_he = container_of(he, struct c2c_hist_entry, he); in tot_hitm_entry()
629 c2c_left = container_of(left, struct c2c_hist_entry, he); in tot_hitm_cmp()
630 c2c_right = container_of(right, struct c2c_hist_entry, he); in tot_hitm_cmp()
641 struct hist_entry *he) \
644 int width = c2c_width(fmt, hpp, he->hists); \
646 c2c_he = container_of(he, struct c2c_hist_entry, he); \
658 c2c_left = container_of(left, struct c2c_hist_entry, he); \
659 c2c_right = container_of(right, struct c2c_hist_entry, he); \
716 struct hist_entry *he) in tot_recs_entry() argument
719 int width = c2c_width(fmt, hpp, he->hists); in tot_recs_entry()
722 c2c_he = container_of(he, struct c2c_hist_entry, he); in tot_recs_entry()
737 c2c_left = container_of(left, struct c2c_hist_entry, he); in tot_recs_cmp()
738 c2c_right = container_of(right, struct c2c_hist_entry, he); in tot_recs_cmp()
754 struct hist_entry *he) in tot_loads_entry() argument
757 int width = c2c_width(fmt, hpp, he->hists); in tot_loads_entry()
760 c2c_he = container_of(he, struct c2c_hist_entry, he); in tot_loads_entry()
775 c2c_left = container_of(left, struct c2c_hist_entry, he); in tot_loads_cmp()
776 c2c_right = container_of(right, struct c2c_hist_entry, he); in tot_loads_cmp()
788 struct hist_entry *he, get_percent_cb get_percent) in percent_color() argument
791 int width = c2c_width(fmt, hpp, he->hists); in percent_color()
794 c2c_he = container_of(he, struct c2c_hist_entry, he); in percent_color()
812 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); in percent_costly_snoop()
850 struct hist_entry *he) in percent_costly_snoop_entry() argument
853 int width = c2c_width(fmt, hpp, he->hists); in percent_costly_snoop_entry()
857 c2c_he = container_of(he, struct c2c_hist_entry, he); in percent_costly_snoop_entry()
864 struct hist_entry *he) in percent_costly_snoop_color() argument
866 return percent_color(fmt, hpp, he, percent_costly_snoop); in percent_costly_snoop_color()
878 c2c_left = container_of(left, struct c2c_hist_entry, he); in percent_costly_snoop_cmp()
879 c2c_right = container_of(right, struct c2c_hist_entry, he); in percent_costly_snoop_cmp()
887 static struct c2c_stats *he_stats(struct hist_entry *he) in he_stats() argument
891 c2c_he = container_of(he, struct c2c_hist_entry, he); in he_stats()
895 static struct c2c_stats *total_stats(struct hist_entry *he) in total_stats() argument
899 hists = container_of(he->hists, struct c2c_hists, hists); in total_stats()
915 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); \
929 struct hist_entry *he) in PERCENT_FN()
931 int width = c2c_width(fmt, hpp, he->hists); in PERCENT_FN()
932 double per = PERCENT(he, rmt_hitm); in PERCENT_FN()
940 struct hist_entry *he) in percent_rmt_hitm_color() argument
942 return percent_color(fmt, hpp, he, percent_rmt_hitm); in percent_rmt_hitm_color()
960 struct hist_entry *he) in percent_lcl_hitm_entry() argument
962 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_hitm_entry()
963 double per = PERCENT(he, lcl_hitm); in percent_lcl_hitm_entry()
971 struct hist_entry *he) in percent_lcl_hitm_color() argument
973 return percent_color(fmt, hpp, he, percent_lcl_hitm); in percent_lcl_hitm_color()
991 struct hist_entry *he) in percent_lcl_peer_entry() argument
993 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_peer_entry()
994 double per = PERCENT(he, lcl_peer); in percent_lcl_peer_entry()
1002 struct hist_entry *he) in percent_lcl_peer_color() argument
1004 return percent_color(fmt, hpp, he, percent_lcl_peer); in percent_lcl_peer_color()
1022 struct hist_entry *he) in percent_rmt_peer_entry() argument
1024 int width = c2c_width(fmt, hpp, he->hists); in percent_rmt_peer_entry()
1025 double per = PERCENT(he, rmt_peer); in percent_rmt_peer_entry()
1033 struct hist_entry *he) in percent_rmt_peer_color() argument
1035 return percent_color(fmt, hpp, he, percent_rmt_peer); in percent_rmt_peer_color()
1053 struct hist_entry *he) in percent_stores_l1hit_entry() argument
1055 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1hit_entry()
1056 double per = PERCENT(he, st_l1hit); in percent_stores_l1hit_entry()
1064 struct hist_entry *he) in percent_stores_l1hit_color() argument
1066 return percent_color(fmt, hpp, he, percent_st_l1hit); in percent_stores_l1hit_color()
1084 struct hist_entry *he) in percent_stores_l1miss_entry() argument
1086 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1miss_entry()
1087 double per = PERCENT(he, st_l1miss); in percent_stores_l1miss_entry()
1095 struct hist_entry *he) in percent_stores_l1miss_color() argument
1097 return percent_color(fmt, hpp, he, percent_st_l1miss); in percent_stores_l1miss_color()
1115 struct hist_entry *he) in percent_stores_na_entry() argument
1117 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_na_entry()
1118 double per = PERCENT(he, st_na); in percent_stores_na_entry()
1126 struct hist_entry *he) in percent_stores_na_color() argument
1128 return percent_color(fmt, hpp, he, percent_st_na); in percent_stores_na_color()
1149 struct hist_entry *he) in STAT_FN()
1151 int width = c2c_width(fmt, hpp, he->hists); in STAT_FN()
1153 return scnprintf(hpp->buf, hpp->size, "%*d", width, he->thread->pid_); in STAT_FN()
1186 struct hist_entry *he) in node_entry() argument
1193 c2c_he = container_of(he, struct c2c_hist_entry, he); in node_entry()
1282 struct hist_entry *he, double mean) in mean_entry() argument
1284 int width = c2c_width(fmt, hpp, he->hists); in mean_entry()
1293 __func(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, struct hist_entry *he) \
1296 c2c_he = container_of(he, struct c2c_hist_entry, he); \
1297 return mean_entry(fmt, hpp, he, avg_stats(&c2c_he->cstats.__val)); \
1308 struct hist_entry *he) in cpucnt_entry() argument
1311 int width = c2c_width(fmt, hpp, he->hists); in cpucnt_entry()
1314 c2c_he = container_of(he, struct c2c_hist_entry, he); in cpucnt_entry()
1322 struct hist_entry *he) in cl_idx_entry() argument
1325 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_entry()
1328 c2c_he = container_of(he, struct c2c_hist_entry, he); in cl_idx_entry()
1336 struct hist_entry *he) in cl_idx_empty_entry() argument
1338 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_empty_entry()
1913 struct hist_entry *he) in c2c_se_entry() argument
1920 len = hists__col_len(he->hists, dim->se->se_width_idx); in c2c_se_entry()
1923 len = symbol_width(he->hists, dim->se); in c2c_se_entry()
1926 return dim->se->se_snprintf(he, hpp->buf, hpp->size, len); in c2c_se_entry()
2101 static bool he__display(struct hist_entry *he, struct c2c_stats *stats) in he__display() argument
2108 c2c_he = container_of(he, struct c2c_hist_entry, he); in he__display()
2112 he->filtered = filter_display(c2c_he->stats.lcl_hitm, in he__display()
2116 he->filtered = filter_display(c2c_he->stats.rmt_hitm, in he__display()
2120 he->filtered = filter_display(c2c_he->stats.tot_hitm, in he__display()
2124 he->filtered = filter_display(c2c_he->stats.tot_peer, in he__display()
2131 return he->filtered == 0; in he__display()
2134 static inline bool is_valid_hist_entry(struct hist_entry *he) in is_valid_hist_entry() argument
2139 c2c_he = container_of(he, struct c2c_hist_entry, he); in is_valid_hist_entry()
2199 c2c_hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); in calc_width()
2200 hists__calc_col_len(&c2c_hists->hists, &c2c_he->he); in calc_width()
2204 static int filter_cb(struct hist_entry *he, void *arg __maybe_unused) in filter_cb() argument
2208 c2c_he = container_of(he, struct c2c_hist_entry, he); in filter_cb()
2210 if (c2c.show_src && !he->srcline) in filter_cb()
2211 he->srcline = hist_entry__srcline(he); in filter_cb()
2215 if (!is_valid_hist_entry(he)) in filter_cb()
2216 he->filtered = HIST_FILTER__C2C; in filter_cb()
2221 static int resort_cl_cb(struct hist_entry *he, void *arg __maybe_unused) in resort_cl_cb() argument
2225 bool display = he__display(he, &c2c.shared_clines_stats); in resort_cl_cb()
2227 c2c_he = container_of(he, struct c2c_hist_entry, he); in resort_cl_cb()
2338 static int resort_shared_cl_cb(struct hist_entry *he, void *arg __maybe_unused) in resort_shared_cl_cb() argument
2341 c2c_he = container_of(he, struct c2c_hist_entry, he); in resort_shared_cl_cb()
2357 struct hist_entry *he; in hists__iterate_cb() local
2359 he = rb_entry(next, struct hist_entry, rb_node); in hists__iterate_cb()
2360 ret = cb(he, NULL); in hists__iterate_cb()
2363 next = rb_next(&he->rb_node); in hists__iterate_cb()
2499 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); in print_pareto() local
2502 if (he->filtered) in print_pareto()
2505 c2c_he = container_of(he, struct c2c_hist_entry, he); in print_pareto()
2506 print_cacheline(c2c_he->hists, he, &hpp_list, out); in print_pareto()
2566 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); in c2c_browser__update_nr_entries() local
2568 if (!he->filtered) in c2c_browser__update_nr_entries()
2579 struct hist_entry *he; member
2587 struct hist_entry *he; in perf_c2c_cacheline_browser__title() local
2591 he = cl_browser->he; in perf_c2c_cacheline_browser__title()
2593 if (he->mem_info) in perf_c2c_cacheline_browser__title()
2594 addr = cl_address(he->mem_info->daddr.addr, chk_double_cl); in perf_c2c_cacheline_browser__title()
2601 c2c_cacheline_browser__new(struct hists *hists, struct hist_entry *he) in c2c_cacheline_browser__new() argument
2610 browser->he = he; in c2c_cacheline_browser__new()
2616 static int perf_c2c__browse_cacheline(struct hist_entry *he) in perf_c2c__browse_cacheline() argument
2629 if (!he) in perf_c2c__browse_cacheline()
2635 c2c_he = container_of(he, struct c2c_hist_entry, he); in perf_c2c__browse_cacheline()
2638 cl_browser = c2c_cacheline_browser__new(&c2c_hists->hists, he); in perf_c2c__browse_cacheline()