Lines Matching refs:he
77 struct hist_entry he; member
156 return &c2c_he->he; in c2c_he_zalloc()
159 static void c2c_he_free(void *he) in c2c_he_free() argument
163 c2c_he = container_of(he, struct c2c_hist_entry, he); in c2c_he_free()
186 he__get_c2c_hists(struct hist_entry *he, in he__get_c2c_hists() argument
194 c2c_he = container_of(he, struct c2c_hist_entry, he); in he__get_c2c_hists()
266 struct hist_entry *he; in process_sample_event() local
298 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
301 if (he == NULL) in process_sample_event()
304 c2c_he = container_of(he, struct c2c_hist_entry, he); in process_sample_event()
311 hists__inc_nr_samples(&c2c_hists->hists, he->filtered); in process_sample_event()
312 ret = hist_entry__append_callchain(he, sample); in process_sample_event()
328 c2c_hists = he__get_c2c_hists(he, c2c.cl_sort, 2); in process_sample_event()
332 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
335 if (he == NULL) in process_sample_event()
338 c2c_he = container_of(he, struct c2c_hist_entry, he); in process_sample_event()
348 hists__inc_nr_samples(&c2c_hists->hists, he->filtered); in process_sample_event()
349 ret = hist_entry__append_callchain(he, sample); in process_sample_event()
407 struct hist_entry *he);
409 struct hist_entry *he);
497 struct hist_entry *he) in dcacheline_entry() argument
500 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_entry()
503 if (he->mem_info) in dcacheline_entry()
504 addr = cl_address(he->mem_info->daddr.addr); in dcacheline_entry()
511 struct hist_entry *he) in dcacheline_node_entry() argument
514 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_entry()
516 c2c_he = container_of(he, struct c2c_hist_entry, he); in dcacheline_node_entry()
525 struct hist_entry *he) in dcacheline_node_count() argument
528 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_count()
530 c2c_he = container_of(he, struct c2c_hist_entry, he); in dcacheline_node_count()
535 struct hist_entry *he) in offset_entry() argument
538 int width = c2c_width(fmt, hpp, he->hists); in offset_entry()
541 if (he->mem_info) in offset_entry()
542 addr = cl_offset(he->mem_info->daddr.al_addr); in offset_entry()
563 struct hist_entry *he) in iaddr_entry() argument
566 int width = c2c_width(fmt, hpp, he->hists); in iaddr_entry()
569 if (he->mem_info) in iaddr_entry()
570 addr = he->mem_info->iaddr.addr; in iaddr_entry()
584 struct hist_entry *he) in tot_hitm_entry() argument
587 int width = c2c_width(fmt, hpp, he->hists); in tot_hitm_entry()
590 c2c_he = container_of(he, struct c2c_hist_entry, he); in tot_hitm_entry()
605 c2c_left = container_of(left, struct c2c_hist_entry, he); in tot_hitm_cmp()
606 c2c_right = container_of(right, struct c2c_hist_entry, he); in tot_hitm_cmp()
617 struct hist_entry *he) \
620 int width = c2c_width(fmt, hpp, he->hists); \
622 c2c_he = container_of(he, struct c2c_hist_entry, he); \
634 c2c_left = container_of(left, struct c2c_hist_entry, he); \
635 c2c_right = container_of(right, struct c2c_hist_entry, he); \
680 struct hist_entry *he) in tot_recs_entry() argument
683 int width = c2c_width(fmt, hpp, he->hists); in tot_recs_entry()
686 c2c_he = container_of(he, struct c2c_hist_entry, he); in tot_recs_entry()
701 c2c_left = container_of(left, struct c2c_hist_entry, he); in tot_recs_cmp()
702 c2c_right = container_of(right, struct c2c_hist_entry, he); in tot_recs_cmp()
731 struct hist_entry *he) in tot_loads_entry() argument
734 int width = c2c_width(fmt, hpp, he->hists); in tot_loads_entry()
737 c2c_he = container_of(he, struct c2c_hist_entry, he); in tot_loads_entry()
752 c2c_left = container_of(left, struct c2c_hist_entry, he); in tot_loads_cmp()
753 c2c_right = container_of(right, struct c2c_hist_entry, he); in tot_loads_cmp()
765 struct hist_entry *he, get_percent_cb get_percent) in percent_color() argument
768 int width = c2c_width(fmt, hpp, he->hists); in percent_color()
771 c2c_he = container_of(he, struct c2c_hist_entry, he); in percent_color()
789 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); in percent_hitm()
822 struct hist_entry *he) in percent_hitm_entry() argument
825 int width = c2c_width(fmt, hpp, he->hists); in percent_hitm_entry()
829 c2c_he = container_of(he, struct c2c_hist_entry, he); in percent_hitm_entry()
836 struct hist_entry *he) in percent_hitm_color() argument
838 return percent_color(fmt, hpp, he, percent_hitm); in percent_hitm_color()
850 c2c_left = container_of(left, struct c2c_hist_entry, he); in percent_hitm_cmp()
851 c2c_right = container_of(right, struct c2c_hist_entry, he); in percent_hitm_cmp()
859 static struct c2c_stats *he_stats(struct hist_entry *he) in he_stats() argument
863 c2c_he = container_of(he, struct c2c_hist_entry, he); in he_stats()
867 static struct c2c_stats *total_stats(struct hist_entry *he) in total_stats() argument
871 hists = container_of(he->hists, struct c2c_hists, hists); in total_stats()
887 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); \
898 struct hist_entry *he) in PERCENT_FN()
900 int width = c2c_width(fmt, hpp, he->hists); in PERCENT_FN()
901 double per = PERCENT(he, rmt_hitm); in PERCENT_FN()
909 struct hist_entry *he) in percent_rmt_hitm_color() argument
911 return percent_color(fmt, hpp, he, percent_rmt_hitm); in percent_rmt_hitm_color()
929 struct hist_entry *he) in percent_lcl_hitm_entry() argument
931 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_hitm_entry()
932 double per = PERCENT(he, lcl_hitm); in percent_lcl_hitm_entry()
940 struct hist_entry *he) in percent_lcl_hitm_color() argument
942 return percent_color(fmt, hpp, he, percent_lcl_hitm); in percent_lcl_hitm_color()
960 struct hist_entry *he) in percent_stores_l1hit_entry() argument
962 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1hit_entry()
963 double per = PERCENT(he, st_l1hit); in percent_stores_l1hit_entry()
971 struct hist_entry *he) in percent_stores_l1hit_color() argument
973 return percent_color(fmt, hpp, he, percent_st_l1hit); in percent_stores_l1hit_color()
991 struct hist_entry *he) in percent_stores_l1miss_entry() argument
993 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1miss_entry()
994 double per = PERCENT(he, st_l1miss); in percent_stores_l1miss_entry()
1002 struct hist_entry *he) in percent_stores_l1miss_color() argument
1004 return percent_color(fmt, hpp, he, percent_st_l1miss); in percent_stores_l1miss_color()
1025 struct hist_entry *he) in STAT_FN()
1027 int width = c2c_width(fmt, hpp, he->hists); in STAT_FN()
1029 return scnprintf(hpp->buf, hpp->size, "%*d", width, he->thread->pid_); in STAT_FN()
1049 struct hist_entry *he) in node_entry() argument
1056 c2c_he = container_of(he, struct c2c_hist_entry, he); in node_entry()
1147 struct hist_entry *he, double mean) in mean_entry() argument
1149 int width = c2c_width(fmt, hpp, he->hists); in mean_entry()
1158 __func(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, struct hist_entry *he) \
1161 c2c_he = container_of(he, struct c2c_hist_entry, he); \
1162 return mean_entry(fmt, hpp, he, avg_stats(&c2c_he->cstats.__val)); \
1171 struct hist_entry *he) in cpucnt_entry() argument
1174 int width = c2c_width(fmt, hpp, he->hists); in cpucnt_entry()
1177 c2c_he = container_of(he, struct c2c_hist_entry, he); in cpucnt_entry()
1185 struct hist_entry *he) in cl_idx_entry() argument
1188 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_entry()
1191 c2c_he = container_of(he, struct c2c_hist_entry, he); in cl_idx_entry()
1199 struct hist_entry *he) in cl_idx_empty_entry() argument
1201 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_empty_entry()
1670 struct hist_entry *he) in c2c_se_entry() argument
1677 len = hists__col_len(he->hists, dim->se->se_width_idx); in c2c_se_entry()
1680 len = symbol_width(he->hists, dim->se); in c2c_se_entry()
1683 return dim->se->se_snprintf(he, hpp->buf, hpp->size, len); in c2c_se_entry()
1850 static bool he__display(struct hist_entry *he, struct c2c_stats *stats) in he__display() argument
1858 c2c_he = container_of(he, struct c2c_hist_entry, he); in he__display()
1864 he->filtered = HIST_FILTER__C2C; \ in he__display()
1866 he->filtered = HIST_FILTER__C2C; \ in he__display()
1884 return he->filtered == 0; in he__display()
1887 static inline int valid_hitm_or_store(struct hist_entry *he) in valid_hitm_or_store() argument
1892 c2c_he = container_of(he, struct c2c_hist_entry, he); in valid_hitm_or_store()
1934 c2c_hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); in calc_width()
1935 hists__calc_col_len(&c2c_hists->hists, &c2c_he->he); in calc_width()
1939 static int filter_cb(struct hist_entry *he, void *arg __maybe_unused) in filter_cb() argument
1943 c2c_he = container_of(he, struct c2c_hist_entry, he); in filter_cb()
1945 if (c2c.show_src && !he->srcline) in filter_cb()
1946 he->srcline = hist_entry__srcline(he); in filter_cb()
1950 if (!valid_hitm_or_store(he)) in filter_cb()
1951 he->filtered = HIST_FILTER__C2C; in filter_cb()
1956 static int resort_cl_cb(struct hist_entry *he, void *arg __maybe_unused) in resort_cl_cb() argument
1960 bool display = he__display(he, &c2c.hitm_stats); in resort_cl_cb()
1962 c2c_he = container_of(he, struct c2c_hist_entry, he); in resort_cl_cb()
2047 static int resort_hitm_cb(struct hist_entry *he, void *arg __maybe_unused) in resort_hitm_cb() argument
2050 c2c_he = container_of(he, struct c2c_hist_entry, he); in resort_hitm_cb()
2066 struct hist_entry *he; in hists__iterate_cb() local
2068 he = rb_entry(next, struct hist_entry, rb_node); in hists__iterate_cb()
2069 ret = cb(he, NULL); in hists__iterate_cb()
2072 next = rb_next(&he->rb_node); in hists__iterate_cb()
2192 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); in print_pareto() local
2195 if (he->filtered) in print_pareto()
2198 c2c_he = container_of(he, struct c2c_hist_entry, he); in print_pareto()
2199 print_cacheline(c2c_he->hists, he, &hpp_list, out); in print_pareto()
2259 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); in c2c_browser__update_nr_entries() local
2261 if (!he->filtered) in c2c_browser__update_nr_entries()
2272 struct hist_entry *he; member
2280 struct hist_entry *he; in perf_c2c_cacheline_browser__title() local
2284 he = cl_browser->he; in perf_c2c_cacheline_browser__title()
2286 if (he->mem_info) in perf_c2c_cacheline_browser__title()
2287 addr = cl_address(he->mem_info->daddr.addr); in perf_c2c_cacheline_browser__title()
2294 c2c_cacheline_browser__new(struct hists *hists, struct hist_entry *he) in c2c_cacheline_browser__new() argument
2303 browser->he = he; in c2c_cacheline_browser__new()
2309 static int perf_c2c__browse_cacheline(struct hist_entry *he) in perf_c2c__browse_cacheline() argument
2322 if (!he) in perf_c2c__browse_cacheline()
2328 c2c_he = container_of(he, struct c2c_hist_entry, he); in perf_c2c__browse_cacheline()
2331 cl_browser = c2c_cacheline_browser__new(&c2c_hists->hists, he); in perf_c2c__browse_cacheline()