Lines Matching refs:hists

49 	struct hists		hists;  member
63 struct c2c_hists *hists; member
88 struct c2c_hists hists; member
178 if (c2c_he->hists) { in c2c_he_free()
179 hists__delete_entries(&c2c_he->hists->hists); in c2c_he_free()
180 zfree(&c2c_he->hists); in c2c_he_free()
195 static int c2c_hists__init(struct c2c_hists *hists,
205 struct c2c_hists *hists; in he__get_c2c_hists() local
209 if (c2c_he->hists) in he__get_c2c_hists()
210 return c2c_he->hists; in he__get_c2c_hists()
212 hists = c2c_he->hists = zalloc(sizeof(*hists)); in he__get_c2c_hists()
213 if (!hists) in he__get_c2c_hists()
216 ret = c2c_hists__init(hists, sort, nr_header_lines); in he__get_c2c_hists()
218 free(hists); in he__get_c2c_hists()
222 return hists; in he__get_c2c_hists()
281 struct c2c_hists *c2c_hists = &c2c.hists; in process_sample_event()
322 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
335 hists__inc_nr_samples(&c2c_hists->hists, he->filtered); in process_sample_event()
356 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
372 hists__inc_nr_samples(&c2c_hists->hists, he->filtered); in process_sample_event()
450 static int symbol_width(struct hists *hists, struct sort_entry *se) in symbol_width() argument
452 int width = hists__col_len(hists, se->se_width_idx); in symbol_width()
462 struct hists *hists) in c2c_width() argument
471 return symbol_width(hists, dim->se); in c2c_width()
473 return dim->se ? hists__col_len(hists, dim->se->se_width_idx) : in c2c_width()
478 struct hists *hists, int line, int *span) in c2c_header() argument
480 struct perf_hpp_list *hpp_list = hists->hpp_list; in c2c_header()
484 int width = c2c_width(fmt, hpp, hists); in c2c_header()
528 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_entry()
542 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_entry()
556 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_count()
566 int width = c2c_width(fmt, hpp, he->hists); in offset_entry()
595 int width = c2c_width(fmt, hpp, he->hists); in iaddr_entry()
616 int width = c2c_width(fmt, hpp, he->hists); in tot_hitm_entry()
649 int width = c2c_width(fmt, hpp, he->hists); \
724 int width = c2c_width(fmt, hpp, he->hists); in tot_recs_entry()
762 int width = c2c_width(fmt, hpp, he->hists); in tot_loads_entry()
796 int width = c2c_width(fmt, hpp, he->hists); in percent_color()
811 struct c2c_hists *hists; in percent_costly_snoop() local
817 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); in percent_costly_snoop()
819 total = &hists->stats; in percent_costly_snoop()
858 int width = c2c_width(fmt, hpp, he->hists); in percent_costly_snoop_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); \
936 int width = c2c_width(fmt, hpp, he->hists); in PERCENT_FN()
967 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_hitm_entry()
998 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_peer_entry()
1029 int width = c2c_width(fmt, hpp, he->hists); in percent_rmt_peer_entry()
1060 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1hit_entry()
1091 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1miss_entry()
1122 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_na_entry()
1156 int width = c2c_width(fmt, hpp, he->hists); in STAT_FN()
1289 int width = c2c_width(fmt, hpp, he->hists); in mean_entry()
1316 int width = c2c_width(fmt, hpp, he->hists); in cpucnt_entry()
1330 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_entry()
1343 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_empty_entry()
1925 len = hists__col_len(he->hists, dim->se->se_width_idx); in c2c_se_entry()
1928 len = symbol_width(he->hists, dim->se); in c2c_se_entry()
2061 perf_hpp__append_sort_keys(&hists->list); in hpp_list__parse()
2069 static int c2c_hists__init(struct c2c_hists *hists, in c2c_hists__init() argument
2073 __hists__init(&hists->hists, &hists->list); in c2c_hists__init()
2080 perf_hpp_list__init(&hists->list); in c2c_hists__init()
2083 hists->list.nr_header_lines = nr_header_lines; in c2c_hists__init()
2085 return hpp_list__parse(&hists->list, NULL, sort); in c2c_hists__init()
2173 dim = &c2c.hists == c2c_he->hists ? in set_node_width()
2204 c2c_hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); in calc_width()
2205 hists__calc_col_len(&c2c_hists->hists, &c2c_he->he); in calc_width()
2233 c2c_hists = c2c_he->hists; in resort_cl_cb()
2243 hists__collapse_resort(&c2c_hists->hists, NULL); in resort_cl_cb()
2244 hists__output_resort_cb(&c2c_hists->hists, NULL, filter_cb); in resort_cl_cb()
2356 static int hists__iterate_cb(struct hists *hists, hists__resort_cb_t cb) in hists__iterate_cb() argument
2358 struct rb_node *next = rb_first_cached(&hists->entries); in hists__iterate_cb()
2377 struct c2c_stats *stats = &c2c.hists.stats; in print_c2c__display_stats()
2457 hists__fprintf_headers(&c2c_hists->hists, out); in print_cacheline()
2468 hists__fprintf(&c2c_hists->hists, false, 0, 0, 0, out, false); in print_cacheline()
2501 nd = rb_first_cached(&c2c.hists.hists.entries); in print_pareto()
2511 print_cacheline(c2c_he->hists, he, &hpp_list, out); in print_pareto()
2553 hists__fprintf(&c2c.hists.hists, true, 0, 0, 0, stdout, true); in perf_c2c__hists_fprintf()
2568 struct rb_node *nd = rb_first_cached(&hb->hists->entries); in c2c_browser__update_nr_entries()
2606 c2c_cacheline_browser__new(struct hists *hists, struct hist_entry *he) in c2c_cacheline_browser__new() argument
2612 hist_browser__init(&browser->hb, hists); in c2c_cacheline_browser__new()
2641 c2c_hists = c2c_he->hists; in perf_c2c__browse_cacheline()
2643 cl_browser = c2c_cacheline_browser__new(&c2c_hists->hists, he); in perf_c2c__browse_cacheline()
2693 perf_c2c_browser__new(struct hists *hists) in perf_c2c_browser__new() argument
2695 struct hist_browser *browser = hist_browser__new(hists); in perf_c2c_browser__new()
2705 static int perf_c2c__hists_browse(struct hists *hists) in perf_c2c__hists_browse() argument
2714 browser = perf_c2c_browser__new(hists); in perf_c2c__hists_browse()
2751 perf_c2c__hists_browse(&c2c.hists.hists); in perf_c2c_display()
3105 err = c2c_hists__init(&c2c.hists, "dcacheline", 2); in perf_c2c__report()
3189 c2c_hists__reinit(&c2c.hists, output_str, sort_str); in perf_c2c__report()
3191 ui_progress__init(&prog, c2c.hists.hists.nr_entries, "Sorting..."); in perf_c2c__report()
3193 hists__collapse_resort(&c2c.hists.hists, NULL); in perf_c2c__report()
3194 hists__output_resort_cb(&c2c.hists.hists, &prog, resort_shared_cl_cb); in perf_c2c__report()
3195 hists__iterate_cb(&c2c.hists.hists, resort_cl_cb); in perf_c2c__report()