Lines Matching refs:he
68 struct hist_entry he; member
146 return &c2c_he->he; in c2c_he_zalloc()
149 static void c2c_he_free(void *he) in c2c_he_free() argument
153 c2c_he = container_of(he, struct c2c_hist_entry, he); in c2c_he_free()
176 he__get_c2c_hists(struct hist_entry *he, in he__get_c2c_hists() argument
184 c2c_he = container_of(he, struct c2c_hist_entry, he); in he__get_c2c_hists()
256 struct hist_entry *he; in process_sample_event() local
285 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
288 if (he == NULL) in process_sample_event()
291 c2c_he = container_of(he, struct c2c_hist_entry, he); in process_sample_event()
298 hists__inc_nr_samples(&c2c_hists->hists, he->filtered); in process_sample_event()
299 ret = hist_entry__append_callchain(he, sample); in process_sample_event()
315 c2c_hists = he__get_c2c_hists(he, c2c.cl_sort, 2); in process_sample_event()
319 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
322 if (he == NULL) in process_sample_event()
325 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()
394 struct hist_entry *he);
396 struct hist_entry *he);
484 struct hist_entry *he) in dcacheline_entry() argument
487 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_entry()
490 if (he->mem_info) in dcacheline_entry()
491 addr = cl_address(he->mem_info->daddr.addr); in dcacheline_entry()
498 struct hist_entry *he) in dcacheline_node_entry() argument
501 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_entry()
503 c2c_he = container_of(he, struct c2c_hist_entry, he); in dcacheline_node_entry()
512 struct hist_entry *he) in dcacheline_node_count() argument
515 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_count()
517 c2c_he = container_of(he, struct c2c_hist_entry, he); in dcacheline_node_count()
522 struct hist_entry *he) in offset_entry() argument
525 int width = c2c_width(fmt, hpp, he->hists); in offset_entry()
528 if (he->mem_info) in offset_entry()
529 addr = cl_offset(he->mem_info->daddr.al_addr); in offset_entry()
550 struct hist_entry *he) in iaddr_entry() argument
553 int width = c2c_width(fmt, hpp, he->hists); in iaddr_entry()
556 if (he->mem_info) in iaddr_entry()
557 addr = he->mem_info->iaddr.addr; in iaddr_entry()
571 struct hist_entry *he) in tot_hitm_entry() argument
574 int width = c2c_width(fmt, hpp, he->hists); in tot_hitm_entry()
577 c2c_he = container_of(he, struct c2c_hist_entry, he); in tot_hitm_entry()
592 c2c_left = container_of(left, struct c2c_hist_entry, he); in tot_hitm_cmp()
593 c2c_right = container_of(right, struct c2c_hist_entry, he); in tot_hitm_cmp()
604 struct hist_entry *he) \
607 int width = c2c_width(fmt, hpp, he->hists); \
609 c2c_he = container_of(he, struct c2c_hist_entry, he); \
621 c2c_left = container_of(left, struct c2c_hist_entry, he); \
622 c2c_right = container_of(right, struct c2c_hist_entry, he); \
655 struct hist_entry *he) in ld_llcmiss_entry() argument
658 int width = c2c_width(fmt, hpp, he->hists); in ld_llcmiss_entry()
660 c2c_he = container_of(he, struct c2c_hist_entry, he); in ld_llcmiss_entry()
673 c2c_left = container_of(left, struct c2c_hist_entry, he); in ld_llcmiss_cmp()
674 c2c_right = container_of(right, struct c2c_hist_entry, he); in ld_llcmiss_cmp()
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()
755 struct hist_entry *he) in tot_loads_entry() argument
758 int width = c2c_width(fmt, hpp, he->hists); in tot_loads_entry()
761 c2c_he = container_of(he, struct c2c_hist_entry, he); in tot_loads_entry()
776 c2c_left = container_of(left, struct c2c_hist_entry, he); in tot_loads_cmp()
777 c2c_right = container_of(right, struct c2c_hist_entry, he); in tot_loads_cmp()
789 struct hist_entry *he, get_percent_cb get_percent) in percent_color() argument
792 int width = c2c_width(fmt, hpp, he->hists); in percent_color()
795 c2c_he = container_of(he, struct c2c_hist_entry, he); in percent_color()
813 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); in percent_hitm()
846 struct hist_entry *he) in percent_hitm_entry() argument
849 int width = c2c_width(fmt, hpp, he->hists); in percent_hitm_entry()
853 c2c_he = container_of(he, struct c2c_hist_entry, he); in percent_hitm_entry()
860 struct hist_entry *he) in percent_hitm_color() argument
862 return percent_color(fmt, hpp, he, percent_hitm); in percent_hitm_color()
874 c2c_left = container_of(left, struct c2c_hist_entry, he); in percent_hitm_cmp()
875 c2c_right = container_of(right, struct c2c_hist_entry, he); in percent_hitm_cmp()
883 static struct c2c_stats *he_stats(struct hist_entry *he) in he_stats() argument
887 c2c_he = container_of(he, struct c2c_hist_entry, he); in he_stats()
891 static struct c2c_stats *total_stats(struct hist_entry *he) in total_stats() argument
895 hists = container_of(he->hists, struct c2c_hists, hists); in total_stats()
911 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); \
922 struct hist_entry *he) in PERCENT_FN()
924 int width = c2c_width(fmt, hpp, he->hists); in PERCENT_FN()
925 double per = PERCENT(he, rmt_hitm); in PERCENT_FN()
933 struct hist_entry *he) in percent_rmt_hitm_color() argument
935 return percent_color(fmt, hpp, he, percent_rmt_hitm); in percent_rmt_hitm_color()
953 struct hist_entry *he) in percent_lcl_hitm_entry() argument
955 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_hitm_entry()
956 double per = PERCENT(he, lcl_hitm); in percent_lcl_hitm_entry()
964 struct hist_entry *he) in percent_lcl_hitm_color() argument
966 return percent_color(fmt, hpp, he, percent_lcl_hitm); in percent_lcl_hitm_color()
984 struct hist_entry *he) in percent_stores_l1hit_entry() argument
986 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1hit_entry()
987 double per = PERCENT(he, st_l1hit); in percent_stores_l1hit_entry()
995 struct hist_entry *he) in percent_stores_l1hit_color() argument
997 return percent_color(fmt, hpp, he, percent_st_l1hit); in percent_stores_l1hit_color()
1015 struct hist_entry *he) in percent_stores_l1miss_entry() argument
1017 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1miss_entry()
1018 double per = PERCENT(he, st_l1miss); in percent_stores_l1miss_entry()
1026 struct hist_entry *he) in percent_stores_l1miss_color() argument
1028 return percent_color(fmt, hpp, he, percent_st_l1miss); in percent_stores_l1miss_color()
1049 struct hist_entry *he) in STAT_FN()
1051 int width = c2c_width(fmt, hpp, he->hists); in STAT_FN()
1053 return scnprintf(hpp->buf, hpp->size, "%*d", width, he->thread->pid_); in STAT_FN()
1073 struct hist_entry *he) in node_entry() argument
1080 c2c_he = container_of(he, struct c2c_hist_entry, he); in node_entry()
1171 struct hist_entry *he, double mean) in mean_entry() argument
1173 int width = c2c_width(fmt, hpp, he->hists); in mean_entry()
1182 __func(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, struct hist_entry *he) \
1185 c2c_he = container_of(he, struct c2c_hist_entry, he); \
1186 return mean_entry(fmt, hpp, he, avg_stats(&c2c_he->cstats.__val)); \
1195 struct hist_entry *he) in cpucnt_entry() argument
1198 int width = c2c_width(fmt, hpp, he->hists); in cpucnt_entry()
1201 c2c_he = container_of(he, struct c2c_hist_entry, he); in cpucnt_entry()
1209 struct hist_entry *he) in cl_idx_entry() argument
1212 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_entry()
1215 c2c_he = container_of(he, struct c2c_hist_entry, he); in cl_idx_entry()
1223 struct hist_entry *he) in cl_idx_empty_entry() argument
1225 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_empty_entry()
1703 struct hist_entry *he) in c2c_se_entry() argument
1710 len = hists__col_len(he->hists, dim->se->se_width_idx); in c2c_se_entry()
1713 len = symbol_width(he->hists, dim->se); in c2c_se_entry()
1716 return dim->se->se_snprintf(he, hpp->buf, hpp->size, len); in c2c_se_entry()
1883 static bool he__display(struct hist_entry *he, struct c2c_stats *stats) in he__display() argument
1891 c2c_he = container_of(he, struct c2c_hist_entry, he); in he__display()
1897 he->filtered = HIST_FILTER__C2C; \ in he__display()
1899 he->filtered = HIST_FILTER__C2C; \ in he__display()
1917 return he->filtered == 0; in he__display()
1920 static inline int valid_hitm_or_store(struct hist_entry *he) in valid_hitm_or_store() argument
1925 c2c_he = container_of(he, struct c2c_hist_entry, he); in valid_hitm_or_store()
1967 c2c_hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); in calc_width()
1968 hists__calc_col_len(&c2c_hists->hists, &c2c_he->he); in calc_width()
1972 static int filter_cb(struct hist_entry *he) in filter_cb() argument
1976 c2c_he = container_of(he, struct c2c_hist_entry, he); in filter_cb()
1978 if (c2c.show_src && !he->srcline) in filter_cb()
1979 he->srcline = hist_entry__srcline(he); in filter_cb()
1983 if (!valid_hitm_or_store(he)) in filter_cb()
1984 he->filtered = HIST_FILTER__C2C; in filter_cb()
1989 static int resort_cl_cb(struct hist_entry *he) in resort_cl_cb() argument
1993 bool display = he__display(he, &c2c.hitm_stats); in resort_cl_cb()
1995 c2c_he = container_of(he, struct c2c_hist_entry, he); in resort_cl_cb()
2076 static int resort_hitm_cb(struct hist_entry *he) in resort_hitm_cb() argument
2079 c2c_he = container_of(he, struct c2c_hist_entry, he); in resort_hitm_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); in hists__iterate_cb()
2101 next = rb_next(&he->rb_node); in hists__iterate_cb()
2221 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); in print_pareto() local
2224 if (he->filtered) in print_pareto()
2227 c2c_he = container_of(he, struct c2c_hist_entry, he); in print_pareto()
2228 print_cacheline(c2c_he->hists, he, &hpp_list, out); in print_pareto()
2289 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); in c2c_browser__update_nr_entries() local
2291 if (!he->filtered) in c2c_browser__update_nr_entries()
2302 struct hist_entry *he; member
2310 struct hist_entry *he; in perf_c2c_cacheline_browser__title() local
2314 he = cl_browser->he; in perf_c2c_cacheline_browser__title()
2316 if (he->mem_info) in perf_c2c_cacheline_browser__title()
2317 addr = cl_address(he->mem_info->daddr.addr); in perf_c2c_cacheline_browser__title()
2324 c2c_cacheline_browser__new(struct hists *hists, struct hist_entry *he) in c2c_cacheline_browser__new() argument
2333 browser->he = he; in c2c_cacheline_browser__new()
2339 static int perf_c2c__browse_cacheline(struct hist_entry *he) in perf_c2c__browse_cacheline() argument
2352 if (!he) in perf_c2c__browse_cacheline()
2358 c2c_he = container_of(he, struct c2c_hist_entry, he); in perf_c2c__browse_cacheline()
2361 cl_browser = c2c_cacheline_browser__new(&c2c_hists->hists, he); in perf_c2c__browse_cacheline()