Lines Matching refs:he
77 struct hist_entry he; member
155 return &c2c_he->he; in c2c_he_zalloc()
158 static void c2c_he_free(void *he) in c2c_he_free() argument
162 c2c_he = container_of(he, struct c2c_hist_entry, he); in c2c_he_free()
185 he__get_c2c_hists(struct hist_entry *he, in he__get_c2c_hists() argument
193 c2c_he = container_of(he, struct c2c_hist_entry, he); in he__get_c2c_hists()
265 struct hist_entry *he; in process_sample_event() local
294 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
297 if (he == NULL) in process_sample_event()
300 c2c_he = container_of(he, struct c2c_hist_entry, he); in process_sample_event()
307 hists__inc_nr_samples(&c2c_hists->hists, he->filtered); in process_sample_event()
308 ret = hist_entry__append_callchain(he, sample); in process_sample_event()
324 c2c_hists = he__get_c2c_hists(he, c2c.cl_sort, 2); in process_sample_event()
328 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
331 if (he == NULL) in process_sample_event()
334 c2c_he = container_of(he, struct c2c_hist_entry, he); in process_sample_event()
344 hists__inc_nr_samples(&c2c_hists->hists, he->filtered); in process_sample_event()
345 ret = hist_entry__append_callchain(he, sample); in process_sample_event()
403 struct hist_entry *he);
405 struct hist_entry *he);
493 struct hist_entry *he) in dcacheline_entry() argument
496 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_entry()
499 if (he->mem_info) in dcacheline_entry()
500 addr = cl_address(he->mem_info->daddr.addr); in dcacheline_entry()
507 struct hist_entry *he) in dcacheline_node_entry() argument
510 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_entry()
512 c2c_he = container_of(he, struct c2c_hist_entry, he); in dcacheline_node_entry()
521 struct hist_entry *he) in dcacheline_node_count() argument
524 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_count()
526 c2c_he = container_of(he, struct c2c_hist_entry, he); in dcacheline_node_count()
531 struct hist_entry *he) in offset_entry() argument
534 int width = c2c_width(fmt, hpp, he->hists); in offset_entry()
537 if (he->mem_info) in offset_entry()
538 addr = cl_offset(he->mem_info->daddr.al_addr); in offset_entry()
559 struct hist_entry *he) in iaddr_entry() argument
562 int width = c2c_width(fmt, hpp, he->hists); in iaddr_entry()
565 if (he->mem_info) in iaddr_entry()
566 addr = he->mem_info->iaddr.addr; in iaddr_entry()
580 struct hist_entry *he) in tot_hitm_entry() argument
583 int width = c2c_width(fmt, hpp, he->hists); in tot_hitm_entry()
586 c2c_he = container_of(he, struct c2c_hist_entry, he); in tot_hitm_entry()
601 c2c_left = container_of(left, struct c2c_hist_entry, he); in tot_hitm_cmp()
602 c2c_right = container_of(right, struct c2c_hist_entry, he); in tot_hitm_cmp()
613 struct hist_entry *he) \
616 int width = c2c_width(fmt, hpp, he->hists); \
618 c2c_he = container_of(he, struct c2c_hist_entry, he); \
630 c2c_left = container_of(left, struct c2c_hist_entry, he); \
631 c2c_right = container_of(right, struct c2c_hist_entry, he); \
664 struct hist_entry *he) in ld_llcmiss_entry() argument
667 int width = c2c_width(fmt, hpp, he->hists); in ld_llcmiss_entry()
669 c2c_he = container_of(he, struct c2c_hist_entry, he); in ld_llcmiss_entry()
682 c2c_left = container_of(left, struct c2c_hist_entry, he); in ld_llcmiss_cmp()
683 c2c_right = container_of(right, struct c2c_hist_entry, he); in ld_llcmiss_cmp()
713 struct hist_entry *he) in tot_recs_entry() argument
716 int width = c2c_width(fmt, hpp, he->hists); in tot_recs_entry()
719 c2c_he = container_of(he, struct c2c_hist_entry, he); in tot_recs_entry()
734 c2c_left = container_of(left, struct c2c_hist_entry, he); in tot_recs_cmp()
735 c2c_right = container_of(right, struct c2c_hist_entry, he); in tot_recs_cmp()
764 struct hist_entry *he) in tot_loads_entry() argument
767 int width = c2c_width(fmt, hpp, he->hists); in tot_loads_entry()
770 c2c_he = container_of(he, struct c2c_hist_entry, he); in tot_loads_entry()
785 c2c_left = container_of(left, struct c2c_hist_entry, he); in tot_loads_cmp()
786 c2c_right = container_of(right, struct c2c_hist_entry, he); in tot_loads_cmp()
798 struct hist_entry *he, get_percent_cb get_percent) in percent_color() argument
801 int width = c2c_width(fmt, hpp, he->hists); in percent_color()
804 c2c_he = container_of(he, struct c2c_hist_entry, he); in percent_color()
822 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); in percent_hitm()
855 struct hist_entry *he) in percent_hitm_entry() argument
858 int width = c2c_width(fmt, hpp, he->hists); in percent_hitm_entry()
862 c2c_he = container_of(he, struct c2c_hist_entry, he); in percent_hitm_entry()
869 struct hist_entry *he) in percent_hitm_color() argument
871 return percent_color(fmt, hpp, he, percent_hitm); in percent_hitm_color()
883 c2c_left = container_of(left, struct c2c_hist_entry, he); in percent_hitm_cmp()
884 c2c_right = container_of(right, struct c2c_hist_entry, he); in percent_hitm_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); \
931 struct hist_entry *he) in PERCENT_FN()
933 int width = c2c_width(fmt, hpp, he->hists); in PERCENT_FN()
934 double per = PERCENT(he, rmt_hitm); in PERCENT_FN()
942 struct hist_entry *he) in percent_rmt_hitm_color() argument
944 return percent_color(fmt, hpp, he, percent_rmt_hitm); in percent_rmt_hitm_color()
962 struct hist_entry *he) in percent_lcl_hitm_entry() argument
964 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_hitm_entry()
965 double per = PERCENT(he, lcl_hitm); in percent_lcl_hitm_entry()
973 struct hist_entry *he) in percent_lcl_hitm_color() argument
975 return percent_color(fmt, hpp, he, percent_lcl_hitm); in percent_lcl_hitm_color()
993 struct hist_entry *he) in percent_stores_l1hit_entry() argument
995 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1hit_entry()
996 double per = PERCENT(he, st_l1hit); in percent_stores_l1hit_entry()
1004 struct hist_entry *he) in percent_stores_l1hit_color() argument
1006 return percent_color(fmt, hpp, he, percent_st_l1hit); in percent_stores_l1hit_color()
1024 struct hist_entry *he) in percent_stores_l1miss_entry() argument
1026 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1miss_entry()
1027 double per = PERCENT(he, st_l1miss); in percent_stores_l1miss_entry()
1035 struct hist_entry *he) in percent_stores_l1miss_color() argument
1037 return percent_color(fmt, hpp, he, percent_st_l1miss); in percent_stores_l1miss_color()
1058 struct hist_entry *he) in STAT_FN()
1060 int width = c2c_width(fmt, hpp, he->hists); in STAT_FN()
1062 return scnprintf(hpp->buf, hpp->size, "%*d", width, he->thread->pid_); in STAT_FN()
1082 struct hist_entry *he) in node_entry() argument
1089 c2c_he = container_of(he, struct c2c_hist_entry, he); in node_entry()
1180 struct hist_entry *he, double mean) in mean_entry() argument
1182 int width = c2c_width(fmt, hpp, he->hists); in mean_entry()
1191 __func(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, struct hist_entry *he) \
1194 c2c_he = container_of(he, struct c2c_hist_entry, he); \
1195 return mean_entry(fmt, hpp, he, avg_stats(&c2c_he->cstats.__val)); \
1204 struct hist_entry *he) in cpucnt_entry() argument
1207 int width = c2c_width(fmt, hpp, he->hists); in cpucnt_entry()
1210 c2c_he = container_of(he, struct c2c_hist_entry, he); in cpucnt_entry()
1218 struct hist_entry *he) in cl_idx_entry() argument
1221 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_entry()
1224 c2c_he = container_of(he, struct c2c_hist_entry, he); in cl_idx_entry()
1232 struct hist_entry *he) in cl_idx_empty_entry() argument
1234 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_empty_entry()
1712 struct hist_entry *he) in c2c_se_entry() argument
1719 len = hists__col_len(he->hists, dim->se->se_width_idx); in c2c_se_entry()
1722 len = symbol_width(he->hists, dim->se); in c2c_se_entry()
1725 return dim->se->se_snprintf(he, hpp->buf, hpp->size, len); in c2c_se_entry()
1892 static bool he__display(struct hist_entry *he, struct c2c_stats *stats) in he__display() argument
1900 c2c_he = container_of(he, struct c2c_hist_entry, he); in he__display()
1906 he->filtered = HIST_FILTER__C2C; \ in he__display()
1908 he->filtered = HIST_FILTER__C2C; \ in he__display()
1926 return he->filtered == 0; in he__display()
1929 static inline int valid_hitm_or_store(struct hist_entry *he) in valid_hitm_or_store() argument
1934 c2c_he = container_of(he, struct c2c_hist_entry, he); in valid_hitm_or_store()
1976 c2c_hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); in calc_width()
1977 hists__calc_col_len(&c2c_hists->hists, &c2c_he->he); in calc_width()
1981 static int filter_cb(struct hist_entry *he, void *arg __maybe_unused) in filter_cb() argument
1985 c2c_he = container_of(he, struct c2c_hist_entry, he); in filter_cb()
1987 if (c2c.show_src && !he->srcline) in filter_cb()
1988 he->srcline = hist_entry__srcline(he); in filter_cb()
1992 if (!valid_hitm_or_store(he)) in filter_cb()
1993 he->filtered = HIST_FILTER__C2C; in filter_cb()
1998 static int resort_cl_cb(struct hist_entry *he, void *arg __maybe_unused) in resort_cl_cb() argument
2002 bool display = he__display(he, &c2c.hitm_stats); in resort_cl_cb()
2004 c2c_he = container_of(he, struct c2c_hist_entry, he); in resort_cl_cb()
2089 static int resort_hitm_cb(struct hist_entry *he, void *arg __maybe_unused) in resort_hitm_cb() argument
2092 c2c_he = container_of(he, struct c2c_hist_entry, he); in resort_hitm_cb()
2108 struct hist_entry *he; in hists__iterate_cb() local
2110 he = rb_entry(next, struct hist_entry, rb_node); in hists__iterate_cb()
2111 ret = cb(he, NULL); in hists__iterate_cb()
2114 next = rb_next(&he->rb_node); in hists__iterate_cb()
2234 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); in print_pareto() local
2237 if (he->filtered) in print_pareto()
2240 c2c_he = container_of(he, struct c2c_hist_entry, he); in print_pareto()
2241 print_cacheline(c2c_he->hists, he, &hpp_list, out); in print_pareto()
2302 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); in c2c_browser__update_nr_entries() local
2304 if (!he->filtered) in c2c_browser__update_nr_entries()
2315 struct hist_entry *he; member
2323 struct hist_entry *he; in perf_c2c_cacheline_browser__title() local
2327 he = cl_browser->he; in perf_c2c_cacheline_browser__title()
2329 if (he->mem_info) in perf_c2c_cacheline_browser__title()
2330 addr = cl_address(he->mem_info->daddr.addr); in perf_c2c_cacheline_browser__title()
2337 c2c_cacheline_browser__new(struct hists *hists, struct hist_entry *he) in c2c_cacheline_browser__new() argument
2346 browser->he = he; in c2c_cacheline_browser__new()
2352 static int perf_c2c__browse_cacheline(struct hist_entry *he) in perf_c2c__browse_cacheline() argument
2365 if (!he) in perf_c2c__browse_cacheline()
2371 c2c_he = container_of(he, struct c2c_hist_entry, he); in perf_c2c__browse_cacheline()
2374 cl_browser = c2c_cacheline_browser__new(&c2c_hists->hists, he); in perf_c2c__browse_cacheline()