Lines Matching refs:hists
47 struct hists hists; member
59 struct c2c_hists *hists; member
84 struct c2c_hists hists; member
164 if (c2c_he->hists) { in c2c_he_free()
165 hists__delete_entries(&c2c_he->hists->hists); in c2c_he_free()
166 free(c2c_he->hists); in c2c_he_free()
181 static int c2c_hists__init(struct c2c_hists *hists,
191 struct c2c_hists *hists; in he__get_c2c_hists() local
195 if (c2c_he->hists) in he__get_c2c_hists()
196 return c2c_he->hists; in he__get_c2c_hists()
198 hists = c2c_he->hists = zalloc(sizeof(*hists)); in he__get_c2c_hists()
199 if (!hists) in he__get_c2c_hists()
202 ret = c2c_hists__init(hists, sort, nr_header_lines); in he__get_c2c_hists()
204 free(hists); in he__get_c2c_hists()
208 return hists; in he__get_c2c_hists()
263 struct c2c_hists *c2c_hists = &c2c.hists; in process_sample_event()
298 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
311 hists__inc_nr_samples(&c2c_hists->hists, he->filtered); in process_sample_event()
332 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
348 hists__inc_nr_samples(&c2c_hists->hists, he->filtered); in process_sample_event()
422 static int symbol_width(struct hists *hists, struct sort_entry *se) in symbol_width() argument
424 int width = hists__col_len(hists, se->se_width_idx); in symbol_width()
434 struct hists *hists) in c2c_width() argument
443 return symbol_width(hists, dim->se); in c2c_width()
445 return dim->se ? hists__col_len(hists, dim->se->se_width_idx) : in c2c_width()
450 struct hists *hists, int line, int *span) in c2c_header() argument
452 struct perf_hpp_list *hpp_list = hists->hpp_list; in c2c_header()
456 int width = c2c_width(fmt, hpp, hists); in c2c_header()
500 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_entry()
514 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_entry()
528 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_count()
538 int width = c2c_width(fmt, hpp, he->hists); in offset_entry()
566 int width = c2c_width(fmt, hpp, he->hists); in iaddr_entry()
587 int width = c2c_width(fmt, hpp, he->hists); in tot_hitm_entry()
620 int width = c2c_width(fmt, hpp, he->hists); \
683 int width = c2c_width(fmt, hpp, he->hists); in tot_recs_entry()
734 int width = c2c_width(fmt, hpp, he->hists); in tot_loads_entry()
768 int width = c2c_width(fmt, hpp, he->hists); in percent_color()
783 struct c2c_hists *hists; in percent_hitm() local
789 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); in percent_hitm()
791 total = &hists->stats; in percent_hitm()
825 int width = c2c_width(fmt, hpp, he->hists); in percent_hitm_entry()
869 struct c2c_hists *hists; in total_stats() local
871 hists = container_of(he->hists, struct c2c_hists, hists); in total_stats()
872 return &hists->stats; in total_stats()
885 struct c2c_hists *hists; \
887 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); \
888 return percent(c2c_he->stats.__f, hists->stats.__f); \
900 int width = c2c_width(fmt, hpp, he->hists); in PERCENT_FN()
931 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_hitm_entry()
962 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1hit_entry()
993 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1miss_entry()
1027 int width = c2c_width(fmt, hpp, he->hists); in STAT_FN()
1149 int width = c2c_width(fmt, hpp, he->hists); in mean_entry()
1174 int width = c2c_width(fmt, hpp, he->hists); in cpucnt_entry()
1188 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_entry()
1201 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_empty_entry()
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()
1813 perf_hpp__append_sort_keys(&hists->list); in hpp_list__parse()
1821 static int c2c_hists__init(struct c2c_hists *hists, in c2c_hists__init() argument
1825 __hists__init(&hists->hists, &hists->list); in c2c_hists__init()
1832 perf_hpp_list__init(&hists->list); in c2c_hists__init()
1835 hists->list.nr_header_lines = nr_header_lines; in c2c_hists__init()
1837 return hpp_list__parse(&hists->list, NULL, sort); in c2c_hists__init()
1903 dim = &c2c.hists == c2c_he->hists ? in set_node_width()
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()
1963 c2c_hists = c2c_he->hists; in resort_cl_cb()
1973 hists__collapse_resort(&c2c_hists->hists, NULL); in resort_cl_cb()
1974 hists__output_resort_cb(&c2c_hists->hists, NULL, filter_cb); in resort_cl_cb()
2060 static int hists__iterate_cb(struct hists *hists, hists__resort_cb_t cb) in hists__iterate_cb() argument
2062 struct rb_node *next = rb_first_cached(&hists->entries); in hists__iterate_cb()
2081 struct c2c_stats *stats = &c2c.hists.stats; in print_c2c__display_stats()
2156 hists__fprintf_headers(&c2c_hists->hists, out); in print_cacheline()
2167 hists__fprintf(&c2c_hists->hists, false, 0, 0, 0, out, false); in print_cacheline()
2189 nd = rb_first_cached(&c2c.hists.hists.entries); in print_pareto()
2199 print_cacheline(c2c_he->hists, he, &hpp_list, out); in print_pareto()
2241 hists__fprintf(&c2c.hists.hists, true, 0, 0, 0, stdout, true); in perf_c2c__hists_fprintf()
2256 struct rb_node *nd = rb_first_cached(&hb->hists->entries); in c2c_browser__update_nr_entries()
2294 c2c_cacheline_browser__new(struct hists *hists, struct hist_entry *he) in c2c_cacheline_browser__new() argument
2300 hist_browser__init(&browser->hb, hists); in c2c_cacheline_browser__new()
2329 c2c_hists = c2c_he->hists; in perf_c2c__browse_cacheline()
2331 cl_browser = c2c_cacheline_browser__new(&c2c_hists->hists, he); in perf_c2c__browse_cacheline()
2381 perf_c2c_browser__new(struct hists *hists) in perf_c2c_browser__new() argument
2383 struct hist_browser *browser = hist_browser__new(hists); in perf_c2c_browser__new()
2393 static int perf_c2c__hists_browse(struct hists *hists) in perf_c2c__hists_browse() argument
2402 browser = perf_c2c_browser__new(hists); in perf_c2c__hists_browse()
2439 perf_c2c__hists_browse(&c2c.hists.hists); in perf_c2c_display()
2749 err = c2c_hists__init(&c2c.hists, "dcacheline", 2); in perf_c2c__report()
2798 c2c_hists__reinit(&c2c.hists, in perf_c2c__report()
2817 ui_progress__init(&prog, c2c.hists.hists.nr_entries, "Sorting..."); in perf_c2c__report()
2819 hists__collapse_resort(&c2c.hists.hists, NULL); in perf_c2c__report()
2820 hists__output_resort_cb(&c2c.hists.hists, &prog, resort_hitm_cb); in perf_c2c__report()
2821 hists__iterate_cb(&c2c.hists.hists, resort_cl_cb); in perf_c2c__report()