Lines Matching refs:hists
50 struct hists hists; member
64 struct c2c_hists *hists; member
89 struct c2c_hists hists; member
179 if (c2c_he->hists) { in c2c_he_free()
180 hists__delete_entries(&c2c_he->hists->hists); in c2c_he_free()
181 free(c2c_he->hists); in c2c_he_free()
196 static int c2c_hists__init(struct c2c_hists *hists,
206 struct c2c_hists *hists; in he__get_c2c_hists() local
210 if (c2c_he->hists) in he__get_c2c_hists()
211 return c2c_he->hists; in he__get_c2c_hists()
213 hists = c2c_he->hists = zalloc(sizeof(*hists)); in he__get_c2c_hists()
214 if (!hists) in he__get_c2c_hists()
217 ret = c2c_hists__init(hists, sort, nr_header_lines); in he__get_c2c_hists()
219 free(hists); in he__get_c2c_hists()
223 return hists; in he__get_c2c_hists()
282 struct c2c_hists *c2c_hists = &c2c.hists; in process_sample_event()
317 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
330 hists__inc_nr_samples(&c2c_hists->hists, he->filtered); in process_sample_event()
351 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
367 hists__inc_nr_samples(&c2c_hists->hists, he->filtered); in process_sample_event()
445 static int symbol_width(struct hists *hists, struct sort_entry *se) in symbol_width() argument
447 int width = hists__col_len(hists, se->se_width_idx); in symbol_width()
457 struct hists *hists) in c2c_width() argument
466 return symbol_width(hists, dim->se); in c2c_width()
468 return dim->se ? hists__col_len(hists, dim->se->se_width_idx) : in c2c_width()
473 struct hists *hists, int line, int *span) in c2c_header() argument
475 struct perf_hpp_list *hpp_list = hists->hpp_list; in c2c_header()
479 int width = c2c_width(fmt, hpp, hists); in c2c_header()
523 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_entry()
537 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_entry()
551 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_count()
561 int width = c2c_width(fmt, hpp, he->hists); in offset_entry()
589 int width = c2c_width(fmt, hpp, he->hists); in iaddr_entry()
610 int width = c2c_width(fmt, hpp, he->hists); in tot_hitm_entry()
643 int width = c2c_width(fmt, hpp, he->hists); \
718 int width = c2c_width(fmt, hpp, he->hists); in tot_recs_entry()
756 int width = c2c_width(fmt, hpp, he->hists); in tot_loads_entry()
790 int width = c2c_width(fmt, hpp, he->hists); in percent_color()
805 struct c2c_hists *hists; in percent_costly_snoop() local
811 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); in percent_costly_snoop()
813 total = &hists->stats; in percent_costly_snoop()
852 int width = c2c_width(fmt, hpp, he->hists); in percent_costly_snoop_entry()
896 struct c2c_hists *hists; in total_stats() local
898 hists = container_of(he->hists, struct c2c_hists, hists); in total_stats()
899 return &hists->stats; in total_stats()
912 struct c2c_hists *hists; \
914 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); \
915 return percent(c2c_he->stats.__f, hists->stats.__f); \
930 int width = c2c_width(fmt, hpp, he->hists); in PERCENT_FN()
961 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_hitm_entry()
992 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_peer_entry()
1023 int width = c2c_width(fmt, hpp, he->hists); in percent_rmt_peer_entry()
1054 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1hit_entry()
1085 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1miss_entry()
1116 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_na_entry()
1150 int width = c2c_width(fmt, hpp, he->hists); in STAT_FN()
1283 int width = c2c_width(fmt, hpp, he->hists); in mean_entry()
1310 int width = c2c_width(fmt, hpp, he->hists); in cpucnt_entry()
1324 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_entry()
1337 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_empty_entry()
1919 len = hists__col_len(he->hists, dim->se->se_width_idx); in c2c_se_entry()
1922 len = symbol_width(he->hists, dim->se); in c2c_se_entry()
2055 perf_hpp__append_sort_keys(&hists->list); in hpp_list__parse()
2063 static int c2c_hists__init(struct c2c_hists *hists, in c2c_hists__init() argument
2067 __hists__init(&hists->hists, &hists->list); in c2c_hists__init()
2074 perf_hpp_list__init(&hists->list); in c2c_hists__init()
2077 hists->list.nr_header_lines = nr_header_lines; in c2c_hists__init()
2079 return hpp_list__parse(&hists->list, NULL, sort); in c2c_hists__init()
2167 dim = &c2c.hists == c2c_he->hists ? in set_node_width()
2198 c2c_hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); in calc_width()
2199 hists__calc_col_len(&c2c_hists->hists, &c2c_he->he); in calc_width()
2227 c2c_hists = c2c_he->hists; in resort_cl_cb()
2237 hists__collapse_resort(&c2c_hists->hists, NULL); in resort_cl_cb()
2238 hists__output_resort_cb(&c2c_hists->hists, NULL, filter_cb); in resort_cl_cb()
2350 static int hists__iterate_cb(struct hists *hists, hists__resort_cb_t cb) in hists__iterate_cb() argument
2352 struct rb_node *next = rb_first_cached(&hists->entries); in hists__iterate_cb()
2371 struct c2c_stats *stats = &c2c.hists.stats; in print_c2c__display_stats()
2451 hists__fprintf_headers(&c2c_hists->hists, out); in print_cacheline()
2462 hists__fprintf(&c2c_hists->hists, false, 0, 0, 0, out, false); in print_cacheline()
2495 nd = rb_first_cached(&c2c.hists.hists.entries); in print_pareto()
2505 print_cacheline(c2c_he->hists, he, &hpp_list, out); in print_pareto()
2547 hists__fprintf(&c2c.hists.hists, true, 0, 0, 0, stdout, true); in perf_c2c__hists_fprintf()
2562 struct rb_node *nd = rb_first_cached(&hb->hists->entries); in c2c_browser__update_nr_entries()
2600 c2c_cacheline_browser__new(struct hists *hists, struct hist_entry *he) in c2c_cacheline_browser__new() argument
2606 hist_browser__init(&browser->hb, hists); in c2c_cacheline_browser__new()
2635 c2c_hists = c2c_he->hists; in perf_c2c__browse_cacheline()
2637 cl_browser = c2c_cacheline_browser__new(&c2c_hists->hists, he); in perf_c2c__browse_cacheline()
2687 perf_c2c_browser__new(struct hists *hists) in perf_c2c_browser__new() argument
2689 struct hist_browser *browser = hist_browser__new(hists); in perf_c2c_browser__new()
2699 static int perf_c2c__hists_browse(struct hists *hists) in perf_c2c__hists_browse() argument
2708 browser = perf_c2c_browser__new(hists); in perf_c2c__hists_browse()
2745 perf_c2c__hists_browse(&c2c.hists.hists); in perf_c2c_display()
3097 err = c2c_hists__init(&c2c.hists, "dcacheline", 2); in perf_c2c__report()
3181 c2c_hists__reinit(&c2c.hists, output_str, sort_str); in perf_c2c__report()
3183 ui_progress__init(&prog, c2c.hists.hists.nr_entries, "Sorting..."); in perf_c2c__report()
3185 hists__collapse_resort(&c2c.hists.hists, NULL); in perf_c2c__report()
3186 hists__output_resort_cb(&c2c.hists.hists, &prog, resort_shared_cl_cb); in perf_c2c__report()
3187 hists__iterate_cb(&c2c.hists.hists, resort_cl_cb); in perf_c2c__report()