Lines Matching refs:hists
47 struct hists hists; member
59 struct c2c_hists *hists; member
84 struct c2c_hists hists; member
163 if (c2c_he->hists) { in c2c_he_free()
164 hists__delete_entries(&c2c_he->hists->hists); in c2c_he_free()
165 free(c2c_he->hists); in c2c_he_free()
180 static int c2c_hists__init(struct c2c_hists *hists,
190 struct c2c_hists *hists; in he__get_c2c_hists() local
194 if (c2c_he->hists) in he__get_c2c_hists()
195 return c2c_he->hists; in he__get_c2c_hists()
197 hists = c2c_he->hists = zalloc(sizeof(*hists)); in he__get_c2c_hists()
198 if (!hists) in he__get_c2c_hists()
201 ret = c2c_hists__init(hists, sort, nr_header_lines); in he__get_c2c_hists()
203 free(hists); in he__get_c2c_hists()
207 return hists; in he__get_c2c_hists()
262 struct c2c_hists *c2c_hists = &c2c.hists; in process_sample_event()
294 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
307 hists__inc_nr_samples(&c2c_hists->hists, he->filtered); in process_sample_event()
328 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
344 hists__inc_nr_samples(&c2c_hists->hists, he->filtered); in process_sample_event()
418 static int symbol_width(struct hists *hists, struct sort_entry *se) in symbol_width() argument
420 int width = hists__col_len(hists, se->se_width_idx); in symbol_width()
430 struct hists *hists) in c2c_width() argument
439 return symbol_width(hists, dim->se); in c2c_width()
441 return dim->se ? hists__col_len(hists, dim->se->se_width_idx) : in c2c_width()
446 struct hists *hists, int line, int *span) in c2c_header() argument
448 struct perf_hpp_list *hpp_list = hists->hpp_list; in c2c_header()
452 int width = c2c_width(fmt, hpp, hists); in c2c_header()
496 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_entry()
510 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_entry()
524 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_count()
534 int width = c2c_width(fmt, hpp, he->hists); in offset_entry()
562 int width = c2c_width(fmt, hpp, he->hists); in iaddr_entry()
583 int width = c2c_width(fmt, hpp, he->hists); in tot_hitm_entry()
616 int width = c2c_width(fmt, hpp, he->hists); \
667 int width = c2c_width(fmt, hpp, he->hists); in ld_llcmiss_entry()
716 int width = c2c_width(fmt, hpp, he->hists); in tot_recs_entry()
767 int width = c2c_width(fmt, hpp, he->hists); in tot_loads_entry()
801 int width = c2c_width(fmt, hpp, he->hists); in percent_color()
816 struct c2c_hists *hists; in percent_hitm() local
822 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); in percent_hitm()
824 total = &hists->stats; in percent_hitm()
858 int width = c2c_width(fmt, hpp, he->hists); in percent_hitm_entry()
902 struct c2c_hists *hists; in total_stats() local
904 hists = container_of(he->hists, struct c2c_hists, hists); in total_stats()
905 return &hists->stats; in total_stats()
918 struct c2c_hists *hists; \
920 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); \
921 return percent(c2c_he->stats.__f, hists->stats.__f); \
933 int width = c2c_width(fmt, hpp, he->hists); in PERCENT_FN()
964 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_hitm_entry()
995 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1hit_entry()
1026 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1miss_entry()
1060 int width = c2c_width(fmt, hpp, he->hists); in STAT_FN()
1182 int width = c2c_width(fmt, hpp, he->hists); in mean_entry()
1207 int width = c2c_width(fmt, hpp, he->hists); in cpucnt_entry()
1221 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_entry()
1234 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_empty_entry()
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()
1855 perf_hpp__append_sort_keys(&hists->list); in hpp_list__parse()
1863 static int c2c_hists__init(struct c2c_hists *hists, in c2c_hists__init() argument
1867 __hists__init(&hists->hists, &hists->list); in c2c_hists__init()
1874 perf_hpp_list__init(&hists->list); in c2c_hists__init()
1877 hists->list.nr_header_lines = nr_header_lines; in c2c_hists__init()
1879 return hpp_list__parse(&hists->list, NULL, sort); in c2c_hists__init()
1945 dim = &c2c.hists == c2c_he->hists ? in set_node_width()
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()
2005 c2c_hists = c2c_he->hists; in resort_cl_cb()
2015 hists__collapse_resort(&c2c_hists->hists, NULL); in resort_cl_cb()
2016 hists__output_resort_cb(&c2c_hists->hists, NULL, filter_cb); in resort_cl_cb()
2102 static int hists__iterate_cb(struct hists *hists, hists__resort_cb_t cb) in hists__iterate_cb() argument
2104 struct rb_node *next = rb_first_cached(&hists->entries); in hists__iterate_cb()
2123 struct c2c_stats *stats = &c2c.hists.stats; in print_c2c__display_stats()
2198 hists__fprintf_headers(&c2c_hists->hists, out); in print_cacheline()
2209 hists__fprintf(&c2c_hists->hists, false, 0, 0, 0, out, false); in print_cacheline()
2231 nd = rb_first_cached(&c2c.hists.hists.entries); in print_pareto()
2241 print_cacheline(c2c_he->hists, he, &hpp_list, out); in print_pareto()
2284 hists__fprintf(&c2c.hists.hists, true, 0, 0, 0, stdout, true); in perf_c2c__hists_fprintf()
2299 struct rb_node *nd = rb_first_cached(&hb->hists->entries); in c2c_browser__update_nr_entries()
2337 c2c_cacheline_browser__new(struct hists *hists, struct hist_entry *he) in c2c_cacheline_browser__new() argument
2343 hist_browser__init(&browser->hb, hists); in c2c_cacheline_browser__new()
2372 c2c_hists = c2c_he->hists; in perf_c2c__browse_cacheline()
2374 cl_browser = c2c_cacheline_browser__new(&c2c_hists->hists, he); in perf_c2c__browse_cacheline()
2424 perf_c2c_browser__new(struct hists *hists) in perf_c2c_browser__new() argument
2426 struct hist_browser *browser = hist_browser__new(hists); in perf_c2c_browser__new()
2436 static int perf_c2c__hists_browse(struct hists *hists) in perf_c2c__hists_browse() argument
2445 browser = perf_c2c_browser__new(hists); in perf_c2c__hists_browse()
2482 perf_c2c__hists_browse(&c2c.hists.hists); in perf_c2c_display()
2782 err = c2c_hists__init(&c2c.hists, "dcacheline", 2); in perf_c2c__report()
2831 c2c_hists__reinit(&c2c.hists, in perf_c2c__report()
2849 ui_progress__init(&prog, c2c.hists.hists.nr_entries, "Sorting..."); in perf_c2c__report()
2851 hists__collapse_resort(&c2c.hists.hists, NULL); in perf_c2c__report()
2852 hists__output_resort_cb(&c2c.hists.hists, &prog, resort_hitm_cb); in perf_c2c__report()
2853 hists__iterate_cb(&c2c.hists.hists, resort_cl_cb); in perf_c2c__report()