Lines Matching refs:he
79 struct hist_entry he; member
158 return &c2c_he->he; in c2c_he_zalloc()
161 static void c2c_he_free(void *he) in c2c_he_free() argument
165 c2c_he = container_of(he, struct c2c_hist_entry, he); in c2c_he_free()
188 he__get_c2c_hists(struct hist_entry *he, in he__get_c2c_hists() argument
196 c2c_he = container_of(he, struct c2c_hist_entry, he); in he__get_c2c_hists()
268 struct hist_entry *he; in process_sample_event() local
300 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
303 if (he == NULL) in process_sample_event()
306 c2c_he = container_of(he, struct c2c_hist_entry, he); in process_sample_event()
313 hists__inc_nr_samples(&c2c_hists->hists, he->filtered); in process_sample_event()
314 ret = hist_entry__append_callchain(he, sample); in process_sample_event()
330 c2c_hists = he__get_c2c_hists(he, c2c.cl_sort, 2); in process_sample_event()
334 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
337 if (he == NULL) in process_sample_event()
340 c2c_he = container_of(he, struct c2c_hist_entry, he); in process_sample_event()
350 hists__inc_nr_samples(&c2c_hists->hists, he->filtered); in process_sample_event()
351 ret = hist_entry__append_callchain(he, sample); in process_sample_event()
413 struct hist_entry *he);
415 struct hist_entry *he);
503 struct hist_entry *he) in dcacheline_entry() argument
506 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_entry()
509 if (he->mem_info) in dcacheline_entry()
510 addr = cl_address(he->mem_info->daddr.addr); in dcacheline_entry()
517 struct hist_entry *he) in dcacheline_node_entry() argument
520 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_entry()
522 c2c_he = container_of(he, struct c2c_hist_entry, he); in dcacheline_node_entry()
531 struct hist_entry *he) in dcacheline_node_count() argument
534 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_count()
536 c2c_he = container_of(he, struct c2c_hist_entry, he); in dcacheline_node_count()
541 struct hist_entry *he) in offset_entry() argument
544 int width = c2c_width(fmt, hpp, he->hists); in offset_entry()
547 if (he->mem_info) in offset_entry()
548 addr = cl_offset(he->mem_info->daddr.al_addr); in offset_entry()
569 struct hist_entry *he) in iaddr_entry() argument
572 int width = c2c_width(fmt, hpp, he->hists); in iaddr_entry()
575 if (he->mem_info) in iaddr_entry()
576 addr = he->mem_info->iaddr.addr; in iaddr_entry()
590 struct hist_entry *he) in tot_hitm_entry() argument
593 int width = c2c_width(fmt, hpp, he->hists); in tot_hitm_entry()
596 c2c_he = container_of(he, struct c2c_hist_entry, he); in tot_hitm_entry()
611 c2c_left = container_of(left, struct c2c_hist_entry, he); in tot_hitm_cmp()
612 c2c_right = container_of(right, struct c2c_hist_entry, he); in tot_hitm_cmp()
623 struct hist_entry *he) \
626 int width = c2c_width(fmt, hpp, he->hists); \
628 c2c_he = container_of(he, struct c2c_hist_entry, he); \
640 c2c_left = container_of(left, struct c2c_hist_entry, he); \
641 c2c_right = container_of(right, struct c2c_hist_entry, he); \
686 struct hist_entry *he) in tot_recs_entry() argument
689 int width = c2c_width(fmt, hpp, he->hists); in tot_recs_entry()
692 c2c_he = container_of(he, struct c2c_hist_entry, he); in tot_recs_entry()
707 c2c_left = container_of(left, struct c2c_hist_entry, he); in tot_recs_cmp()
708 c2c_right = container_of(right, struct c2c_hist_entry, he); in tot_recs_cmp()
737 struct hist_entry *he) in tot_loads_entry() argument
740 int width = c2c_width(fmt, hpp, he->hists); in tot_loads_entry()
743 c2c_he = container_of(he, struct c2c_hist_entry, he); in tot_loads_entry()
758 c2c_left = container_of(left, struct c2c_hist_entry, he); in tot_loads_cmp()
759 c2c_right = container_of(right, struct c2c_hist_entry, he); in tot_loads_cmp()
771 struct hist_entry *he, get_percent_cb get_percent) in percent_color() argument
774 int width = c2c_width(fmt, hpp, he->hists); in percent_color()
777 c2c_he = container_of(he, struct c2c_hist_entry, he); in percent_color()
795 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); in percent_hitm()
828 struct hist_entry *he) in percent_hitm_entry() argument
831 int width = c2c_width(fmt, hpp, he->hists); in percent_hitm_entry()
835 c2c_he = container_of(he, struct c2c_hist_entry, he); in percent_hitm_entry()
842 struct hist_entry *he) in percent_hitm_color() argument
844 return percent_color(fmt, hpp, he, percent_hitm); in percent_hitm_color()
856 c2c_left = container_of(left, struct c2c_hist_entry, he); in percent_hitm_cmp()
857 c2c_right = container_of(right, struct c2c_hist_entry, he); in percent_hitm_cmp()
865 static struct c2c_stats *he_stats(struct hist_entry *he) in he_stats() argument
869 c2c_he = container_of(he, struct c2c_hist_entry, he); in he_stats()
873 static struct c2c_stats *total_stats(struct hist_entry *he) in total_stats() argument
877 hists = container_of(he->hists, struct c2c_hists, hists); in total_stats()
893 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); \
904 struct hist_entry *he) in PERCENT_FN()
906 int width = c2c_width(fmt, hpp, he->hists); in PERCENT_FN()
907 double per = PERCENT(he, rmt_hitm); in PERCENT_FN()
915 struct hist_entry *he) in percent_rmt_hitm_color() argument
917 return percent_color(fmt, hpp, he, percent_rmt_hitm); in percent_rmt_hitm_color()
935 struct hist_entry *he) in percent_lcl_hitm_entry() argument
937 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_hitm_entry()
938 double per = PERCENT(he, lcl_hitm); in percent_lcl_hitm_entry()
946 struct hist_entry *he) in percent_lcl_hitm_color() argument
948 return percent_color(fmt, hpp, he, percent_lcl_hitm); in percent_lcl_hitm_color()
966 struct hist_entry *he) in percent_stores_l1hit_entry() argument
968 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1hit_entry()
969 double per = PERCENT(he, st_l1hit); in percent_stores_l1hit_entry()
977 struct hist_entry *he) in percent_stores_l1hit_color() argument
979 return percent_color(fmt, hpp, he, percent_st_l1hit); in percent_stores_l1hit_color()
997 struct hist_entry *he) in percent_stores_l1miss_entry() argument
999 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1miss_entry()
1000 double per = PERCENT(he, st_l1miss); in percent_stores_l1miss_entry()
1008 struct hist_entry *he) in percent_stores_l1miss_color() argument
1010 return percent_color(fmt, hpp, he, percent_st_l1miss); in percent_stores_l1miss_color()
1031 struct hist_entry *he) in STAT_FN()
1033 int width = c2c_width(fmt, hpp, he->hists); in STAT_FN()
1035 return scnprintf(hpp->buf, hpp->size, "%*d", width, he->thread->pid_); in STAT_FN()
1068 struct hist_entry *he) in node_entry() argument
1075 c2c_he = container_of(he, struct c2c_hist_entry, he); in node_entry()
1160 struct hist_entry *he, double mean) in mean_entry() argument
1162 int width = c2c_width(fmt, hpp, he->hists); in mean_entry()
1171 __func(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, struct hist_entry *he) \
1174 c2c_he = container_of(he, struct c2c_hist_entry, he); \
1175 return mean_entry(fmt, hpp, he, avg_stats(&c2c_he->cstats.__val)); \
1184 struct hist_entry *he) in cpucnt_entry() argument
1187 int width = c2c_width(fmt, hpp, he->hists); in cpucnt_entry()
1190 c2c_he = container_of(he, struct c2c_hist_entry, he); in cpucnt_entry()
1198 struct hist_entry *he) in cl_idx_entry() argument
1201 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_entry()
1204 c2c_he = container_of(he, struct c2c_hist_entry, he); in cl_idx_entry()
1212 struct hist_entry *he) in cl_idx_empty_entry() argument
1214 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_empty_entry()
1683 struct hist_entry *he) in c2c_se_entry() argument
1690 len = hists__col_len(he->hists, dim->se->se_width_idx); in c2c_se_entry()
1693 len = symbol_width(he->hists, dim->se); in c2c_se_entry()
1696 return dim->se->se_snprintf(he, hpp->buf, hpp->size, len); in c2c_se_entry()
1871 static bool he__display(struct hist_entry *he, struct c2c_stats *stats) in he__display() argument
1878 c2c_he = container_of(he, struct c2c_hist_entry, he); in he__display()
1882 he->filtered = filter_display(c2c_he->stats.lcl_hitm, in he__display()
1886 he->filtered = filter_display(c2c_he->stats.rmt_hitm, in he__display()
1890 he->filtered = filter_display(c2c_he->stats.tot_hitm, in he__display()
1897 return he->filtered == 0; in he__display()
1900 static inline bool is_valid_hist_entry(struct hist_entry *he) in is_valid_hist_entry() argument
1905 c2c_he = container_of(he, struct c2c_hist_entry, he); in is_valid_hist_entry()
1963 c2c_hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); in calc_width()
1964 hists__calc_col_len(&c2c_hists->hists, &c2c_he->he); in calc_width()
1968 static int filter_cb(struct hist_entry *he, void *arg __maybe_unused) in filter_cb() argument
1972 c2c_he = container_of(he, struct c2c_hist_entry, he); in filter_cb()
1974 if (c2c.show_src && !he->srcline) in filter_cb()
1975 he->srcline = hist_entry__srcline(he); in filter_cb()
1979 if (!is_valid_hist_entry(he)) in filter_cb()
1980 he->filtered = HIST_FILTER__C2C; in filter_cb()
1985 static int resort_cl_cb(struct hist_entry *he, void *arg __maybe_unused) in resort_cl_cb() argument
1989 bool display = he__display(he, &c2c.shared_clines_stats); in resort_cl_cb()
1991 c2c_he = container_of(he, struct c2c_hist_entry, he); in resort_cl_cb()
2076 static int resort_shared_cl_cb(struct hist_entry *he, void *arg __maybe_unused) in resort_shared_cl_cb() argument
2079 c2c_he = container_of(he, struct c2c_hist_entry, he); in resort_shared_cl_cb()
2095 struct hist_entry *he; in hists__iterate_cb() local
2097 he = rb_entry(next, struct hist_entry, rb_node); in hists__iterate_cb()
2098 ret = cb(he, NULL); in hists__iterate_cb()
2101 next = rb_next(&he->rb_node); in hists__iterate_cb()
2225 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); in print_pareto() local
2228 if (he->filtered) in print_pareto()
2231 c2c_he = container_of(he, struct c2c_hist_entry, he); in print_pareto()
2232 print_cacheline(c2c_he->hists, he, &hpp_list, out); in print_pareto()
2292 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); in c2c_browser__update_nr_entries() local
2294 if (!he->filtered) in c2c_browser__update_nr_entries()
2305 struct hist_entry *he; member
2313 struct hist_entry *he; in perf_c2c_cacheline_browser__title() local
2317 he = cl_browser->he; in perf_c2c_cacheline_browser__title()
2319 if (he->mem_info) in perf_c2c_cacheline_browser__title()
2320 addr = cl_address(he->mem_info->daddr.addr); in perf_c2c_cacheline_browser__title()
2327 c2c_cacheline_browser__new(struct hists *hists, struct hist_entry *he) in c2c_cacheline_browser__new() argument
2336 browser->he = he; in c2c_cacheline_browser__new()
2342 static int perf_c2c__browse_cacheline(struct hist_entry *he) in perf_c2c__browse_cacheline() argument
2355 if (!he) in perf_c2c__browse_cacheline()
2361 c2c_he = container_of(he, struct c2c_hist_entry, he); in perf_c2c__browse_cacheline()
2364 cl_browser = c2c_cacheline_browser__new(&c2c_hists->hists, he); in perf_c2c__browse_cacheline()