Lines Matching full:he
81 struct hist_entry he; member
164 return &c2c_he->he; in c2c_he_zalloc()
173 static void c2c_he_free(void *he) in c2c_he_free() argument
177 c2c_he = container_of(he, struct c2c_hist_entry, he); in c2c_he_free()
200 he__get_c2c_hists(struct hist_entry *he, in he__get_c2c_hists() argument
208 c2c_he = container_of(he, struct c2c_hist_entry, he); in he__get_c2c_hists()
284 struct hist_entry *he; in process_sample_event() local
322 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
325 if (he == NULL) in process_sample_event()
328 c2c_he = container_of(he, struct c2c_hist_entry, he); in process_sample_event()
335 hists__inc_nr_samples(&c2c_hists->hists, he->filtered); in process_sample_event()
336 ret = hist_entry__append_callchain(he, sample); in process_sample_event()
352 c2c_hists = he__get_c2c_hists(he, c2c.cl_sort, 2); in process_sample_event()
356 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
359 if (he == NULL) in process_sample_event()
362 c2c_he = container_of(he, struct c2c_hist_entry, he); in process_sample_event()
372 hists__inc_nr_samples(&c2c_hists->hists, he->filtered); in process_sample_event()
373 ret = hist_entry__append_callchain(he, sample); in process_sample_event()
435 struct hist_entry *he);
437 struct hist_entry *he);
525 struct hist_entry *he) in dcacheline_entry() argument
528 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_entry()
531 if (he->mem_info) in dcacheline_entry()
532 addr = cl_address(he->mem_info->daddr.addr, chk_double_cl); in dcacheline_entry()
539 struct hist_entry *he) in dcacheline_node_entry() argument
542 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_entry()
544 c2c_he = container_of(he, struct c2c_hist_entry, he); in dcacheline_node_entry()
553 struct hist_entry *he) in dcacheline_node_count() argument
556 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_count()
558 c2c_he = container_of(he, struct c2c_hist_entry, he); in dcacheline_node_count()
563 struct hist_entry *he) in offset_entry() argument
566 int width = c2c_width(fmt, hpp, he->hists); in offset_entry()
569 if (he->mem_info) in offset_entry()
570 addr = cl_offset(he->mem_info->daddr.al_addr, chk_double_cl); in offset_entry()
592 struct hist_entry *he) in iaddr_entry() argument
595 int width = c2c_width(fmt, hpp, he->hists); in iaddr_entry()
598 if (he->mem_info) in iaddr_entry()
599 addr = he->mem_info->iaddr.addr; in iaddr_entry()
613 struct hist_entry *he) in tot_hitm_entry() argument
616 int width = c2c_width(fmt, hpp, he->hists); in tot_hitm_entry()
619 c2c_he = container_of(he, struct c2c_hist_entry, he); in tot_hitm_entry()
634 c2c_left = container_of(left, struct c2c_hist_entry, he); in tot_hitm_cmp()
635 c2c_right = container_of(right, struct c2c_hist_entry, he); in tot_hitm_cmp()
646 struct hist_entry *he) \
649 int width = c2c_width(fmt, hpp, he->hists); \
651 c2c_he = container_of(he, struct c2c_hist_entry, he); \
663 c2c_left = container_of(left, struct c2c_hist_entry, he); \
664 c2c_right = container_of(right, struct c2c_hist_entry, he); \
721 struct hist_entry *he) in tot_recs_entry() argument
724 int width = c2c_width(fmt, hpp, he->hists); in tot_recs_entry()
727 c2c_he = container_of(he, struct c2c_hist_entry, he); in tot_recs_entry()
742 c2c_left = container_of(left, struct c2c_hist_entry, he); in tot_recs_cmp()
743 c2c_right = container_of(right, struct c2c_hist_entry, he); in tot_recs_cmp()
759 struct hist_entry *he) in tot_loads_entry() argument
762 int width = c2c_width(fmt, hpp, he->hists); in tot_loads_entry()
765 c2c_he = container_of(he, struct c2c_hist_entry, he); in tot_loads_entry()
780 c2c_left = container_of(left, struct c2c_hist_entry, he); in tot_loads_cmp()
781 c2c_right = container_of(right, struct c2c_hist_entry, he); in tot_loads_cmp()
793 struct hist_entry *he, get_percent_cb get_percent) in percent_color() argument
796 int width = c2c_width(fmt, hpp, he->hists); in percent_color()
799 c2c_he = container_of(he, struct c2c_hist_entry, he); in percent_color()
817 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); in percent_costly_snoop()
855 struct hist_entry *he) in percent_costly_snoop_entry() argument
858 int width = c2c_width(fmt, hpp, he->hists); in percent_costly_snoop_entry()
862 c2c_he = container_of(he, struct c2c_hist_entry, he); in percent_costly_snoop_entry()
869 struct hist_entry *he) in percent_costly_snoop_color() argument
871 return percent_color(fmt, hpp, he, percent_costly_snoop); in percent_costly_snoop_color()
883 c2c_left = container_of(left, struct c2c_hist_entry, he); in percent_costly_snoop_cmp()
884 c2c_right = container_of(right, struct c2c_hist_entry, he); in percent_costly_snoop_cmp()
892 static struct c2c_stats *he_stats(struct hist_entry *he) in he_stats() argument
896 c2c_he = container_of(he, struct c2c_hist_entry, he); in he_stats()
900 static struct c2c_stats *total_stats(struct hist_entry *he) in total_stats() argument
904 hists = container_of(he->hists, struct c2c_hists, hists); in total_stats()
920 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); \
934 struct hist_entry *he) in PERCENT_FN()
936 int width = c2c_width(fmt, hpp, he->hists); in PERCENT_FN()
937 double per = PERCENT(he, rmt_hitm); in PERCENT_FN()
945 struct hist_entry *he) in percent_rmt_hitm_color() argument
947 return percent_color(fmt, hpp, he, percent_rmt_hitm); in percent_rmt_hitm_color()
965 struct hist_entry *he) in percent_lcl_hitm_entry() argument
967 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_hitm_entry()
968 double per = PERCENT(he, lcl_hitm); in percent_lcl_hitm_entry()
976 struct hist_entry *he) in percent_lcl_hitm_color() argument
978 return percent_color(fmt, hpp, he, percent_lcl_hitm); in percent_lcl_hitm_color()
996 struct hist_entry *he) in percent_lcl_peer_entry() argument
998 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_peer_entry()
999 double per = PERCENT(he, lcl_peer); in percent_lcl_peer_entry()
1007 struct hist_entry *he) in percent_lcl_peer_color() argument
1009 return percent_color(fmt, hpp, he, percent_lcl_peer); in percent_lcl_peer_color()
1027 struct hist_entry *he) in percent_rmt_peer_entry() argument
1029 int width = c2c_width(fmt, hpp, he->hists); in percent_rmt_peer_entry()
1030 double per = PERCENT(he, rmt_peer); in percent_rmt_peer_entry()
1038 struct hist_entry *he) in percent_rmt_peer_color() argument
1040 return percent_color(fmt, hpp, he, percent_rmt_peer); in percent_rmt_peer_color()
1058 struct hist_entry *he) in percent_stores_l1hit_entry() argument
1060 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1hit_entry()
1061 double per = PERCENT(he, st_l1hit); in percent_stores_l1hit_entry()
1069 struct hist_entry *he) in percent_stores_l1hit_color() argument
1071 return percent_color(fmt, hpp, he, percent_st_l1hit); in percent_stores_l1hit_color()
1089 struct hist_entry *he) in percent_stores_l1miss_entry() argument
1091 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1miss_entry()
1092 double per = PERCENT(he, st_l1miss); in percent_stores_l1miss_entry()
1100 struct hist_entry *he) in percent_stores_l1miss_color() argument
1102 return percent_color(fmt, hpp, he, percent_st_l1miss); in percent_stores_l1miss_color()
1120 struct hist_entry *he) in percent_stores_na_entry() argument
1122 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_na_entry()
1123 double per = PERCENT(he, st_na); in percent_stores_na_entry()
1131 struct hist_entry *he) in percent_stores_na_color() argument
1133 return percent_color(fmt, hpp, he, percent_st_na); in percent_stores_na_color()
1154 struct hist_entry *he) in STAT_FN()
1156 int width = c2c_width(fmt, hpp, he->hists); in STAT_FN()
1158 return scnprintf(hpp->buf, hpp->size, "%*d", width, thread__pid(he->thread)); in STAT_FN()
1191 struct hist_entry *he) in node_entry() argument
1198 c2c_he = container_of(he, struct c2c_hist_entry, he); in node_entry()
1287 struct hist_entry *he, double mean) in mean_entry() argument
1289 int width = c2c_width(fmt, hpp, he->hists); in mean_entry()
1298 __func(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, struct hist_entry *he) \
1301 c2c_he = container_of(he, struct c2c_hist_entry, he); \
1302 return mean_entry(fmt, hpp, he, avg_stats(&c2c_he->cstats.__val)); \
1313 struct hist_entry *he) in cpucnt_entry() argument
1316 int width = c2c_width(fmt, hpp, he->hists); in cpucnt_entry()
1319 c2c_he = container_of(he, struct c2c_hist_entry, he); in cpucnt_entry()
1327 struct hist_entry *he) in cl_idx_entry() argument
1330 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_entry()
1333 c2c_he = container_of(he, struct c2c_hist_entry, he); in cl_idx_entry()
1341 struct hist_entry *he) in cl_idx_empty_entry() argument
1343 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_empty_entry()
1918 struct hist_entry *he) in c2c_se_entry() argument
1925 len = hists__col_len(he->hists, dim->se->se_width_idx); in c2c_se_entry()
1928 len = symbol_width(he->hists, dim->se); in c2c_se_entry()
1931 return dim->se->se_snprintf(he, hpp->buf, hpp->size, len); in c2c_se_entry()
2106 static bool he__display(struct hist_entry *he, struct c2c_stats *stats) in he__display() argument
2113 c2c_he = container_of(he, struct c2c_hist_entry, he); in he__display()
2117 he->filtered = filter_display(c2c_he->stats.lcl_hitm, in he__display()
2121 he->filtered = filter_display(c2c_he->stats.rmt_hitm, in he__display()
2125 he->filtered = filter_display(c2c_he->stats.tot_hitm, in he__display()
2129 he->filtered = filter_display(c2c_he->stats.tot_peer, in he__display()
2136 return he->filtered == 0; in he__display()
2139 static inline bool is_valid_hist_entry(struct hist_entry *he) in is_valid_hist_entry() argument
2144 c2c_he = container_of(he, struct c2c_hist_entry, he); in is_valid_hist_entry()
2204 c2c_hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); in calc_width()
2205 hists__calc_col_len(&c2c_hists->hists, &c2c_he->he); in calc_width()
2209 static int filter_cb(struct hist_entry *he, void *arg __maybe_unused) in filter_cb() argument
2213 c2c_he = container_of(he, struct c2c_hist_entry, he); in filter_cb()
2215 if (c2c.show_src && !he->srcline) in filter_cb()
2216 he->srcline = hist_entry__srcline(he); in filter_cb()
2220 if (!is_valid_hist_entry(he)) in filter_cb()
2221 he->filtered = HIST_FILTER__C2C; in filter_cb()
2226 static int resort_cl_cb(struct hist_entry *he, void *arg __maybe_unused) in resort_cl_cb() argument
2230 bool display = he__display(he, &c2c.shared_clines_stats); in resort_cl_cb()
2232 c2c_he = container_of(he, struct c2c_hist_entry, he); in resort_cl_cb()
2343 static int resort_shared_cl_cb(struct hist_entry *he, void *arg __maybe_unused) in resort_shared_cl_cb() argument
2346 c2c_he = container_of(he, struct c2c_hist_entry, he); in resort_shared_cl_cb()
2362 struct hist_entry *he; in hists__iterate_cb() local
2364 he = rb_entry(next, struct hist_entry, rb_node); in hists__iterate_cb()
2365 ret = cb(he, NULL); in hists__iterate_cb()
2368 next = rb_next(&he->rb_node); in hists__iterate_cb()
2504 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); in print_pareto() local
2507 if (he->filtered) in print_pareto()
2510 c2c_he = container_of(he, struct c2c_hist_entry, he); in print_pareto()
2511 print_cacheline(c2c_he->hists, he, &hpp_list, out); in print_pareto()
2571 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); in c2c_browser__update_nr_entries() local
2573 if (!he->filtered) in c2c_browser__update_nr_entries()
2584 struct hist_entry *he; member
2592 struct hist_entry *he; in perf_c2c_cacheline_browser__title() local
2596 he = cl_browser->he; in perf_c2c_cacheline_browser__title()
2598 if (he->mem_info) in perf_c2c_cacheline_browser__title()
2599 addr = cl_address(he->mem_info->daddr.addr, chk_double_cl); in perf_c2c_cacheline_browser__title()
2606 c2c_cacheline_browser__new(struct hists *hists, struct hist_entry *he) in c2c_cacheline_browser__new() argument
2615 browser->he = he; in c2c_cacheline_browser__new()
2621 static int perf_c2c__browse_cacheline(struct hist_entry *he) in perf_c2c__browse_cacheline() argument
2634 if (!he) in perf_c2c__browse_cacheline()
2640 c2c_he = container_of(he, struct c2c_hist_entry, he); in perf_c2c__browse_cacheline()
2643 cl_browser = c2c_cacheline_browser__new(&c2c_hists->hists, he); in perf_c2c__browse_cacheline()