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 zfree(&c2c_he->hists); in c2c_he_free()
196 static int c2c_hists__init(struct c2c_hists *hists,
208 struct c2c_hists *hists; in he__get_c2c_hists() local
212 if (c2c_he->hists) in he__get_c2c_hists()
213 return c2c_he->hists; in he__get_c2c_hists()
215 hists = c2c_he->hists = zalloc(sizeof(*hists)); in he__get_c2c_hists()
216 if (!hists) in he__get_c2c_hists()
219 ret = c2c_hists__init(hists, sort, nr_header_lines, env); in he__get_c2c_hists()
221 free(hists); in he__get_c2c_hists()
225 return hists; in he__get_c2c_hists()
284 struct c2c_hists *c2c_hists = &c2c.hists; in process_sample_event()
325 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
338 hists__inc_nr_samples(&c2c_hists->hists, he->filtered); in process_sample_event()
359 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
375 hists__inc_nr_samples(&c2c_hists->hists, he->filtered); in process_sample_event()
435 static int symbol_width(struct hists *hists, struct sort_entry *se) in symbol_width() argument
437 int width = hists__col_len(hists, se->se_width_idx); in symbol_width()
447 struct hists *hists) in c2c_width() argument
456 return symbol_width(hists, dim->se); in c2c_width()
458 return dim->se ? hists__col_len(hists, dim->se->se_width_idx) : in c2c_width()
463 struct hists *hists, int line, int *span) in c2c_header() argument
465 struct perf_hpp_list *hpp_list = hists->hpp_list; in c2c_header()
469 int width = c2c_width(fmt, hpp, hists); in c2c_header()
513 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_entry()
527 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_entry()
541 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_count()
551 int width = c2c_width(fmt, hpp, he->hists); in offset_entry()
580 int width = c2c_width(fmt, hpp, he->hists); in iaddr_entry()
601 int width = c2c_width(fmt, hpp, he->hists); in tot_hitm_entry()
634 int width = c2c_width(fmt, hpp, he->hists); \
709 int width = c2c_width(fmt, hpp, he->hists); in tot_recs_entry()
747 int width = c2c_width(fmt, hpp, he->hists); in tot_loads_entry()
781 int width = c2c_width(fmt, hpp, he->hists); in percent_color()
796 struct c2c_hists *hists; in percent_costly_snoop() local
802 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); in percent_costly_snoop()
804 total = &hists->stats; in percent_costly_snoop()
843 int width = c2c_width(fmt, hpp, he->hists); in percent_costly_snoop_entry()
887 struct c2c_hists *hists; in total_stats() local
889 hists = container_of(he->hists, struct c2c_hists, hists); in total_stats()
890 return &hists->stats; in total_stats()
903 struct c2c_hists *hists; \
905 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); \
906 return percent(c2c_he->stats.__f, hists->stats.__f); \
921 int width = c2c_width(fmt, hpp, he->hists); in PERCENT_FN()
952 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_hitm_entry()
983 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_peer_entry()
1014 int width = c2c_width(fmt, hpp, he->hists); in percent_rmt_peer_entry()
1045 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1hit_entry()
1076 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1miss_entry()
1107 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_na_entry()
1141 int width = c2c_width(fmt, hpp, he->hists); in STAT_FN()
1274 int width = c2c_width(fmt, hpp, he->hists); in mean_entry()
1301 int width = c2c_width(fmt, hpp, he->hists); in cpucnt_entry()
1315 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_entry()
1328 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_empty_entry()
1910 len = hists__col_len(he->hists, dim->se->se_width_idx); in c2c_se_entry()
1913 len = symbol_width(he->hists, dim->se); in c2c_se_entry()
2049 perf_hpp__append_sort_keys(&hists->list); in hpp_list__parse()
2057 static int c2c_hists__init(struct c2c_hists *hists, in c2c_hists__init() argument
2062 __hists__init(&hists->hists, &hists->list); in c2c_hists__init()
2069 perf_hpp_list__init(&hists->list); in c2c_hists__init()
2072 hists->list.nr_header_lines = nr_header_lines; in c2c_hists__init()
2074 return hpp_list__parse(&hists->list, /*output=*/NULL, sort, env); in c2c_hists__init()
2163 dim = &c2c.hists == c2c_he->hists ? in set_node_width()
2194 c2c_hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); in calc_width()
2195 hists__calc_col_len(&c2c_hists->hists, &c2c_he->he); in calc_width()
2224 c2c_hists = c2c_he->hists; in resort_cl_cb()
2234 hists__collapse_resort(&c2c_hists->hists, NULL); in resort_cl_cb()
2235 hists__output_resort_cb(&c2c_hists->hists, NULL, filter_cb); in resort_cl_cb()
2344 static int hists__iterate_cb(struct hists *hists, hists__resort_cb_t cb, void *arg) in hists__iterate_cb() argument
2346 struct rb_node *next = rb_first_cached(&hists->entries); in hists__iterate_cb()
2365 struct c2c_stats *stats = &c2c.hists.stats; in print_c2c__display_stats()
2445 hists__fprintf_headers(&c2c_hists->hists, out); in print_cacheline()
2456 hists__fprintf(&c2c_hists->hists, false, 0, 0, 0, out, false); in print_cacheline()
2489 nd = rb_first_cached(&c2c.hists.hists.entries); in print_pareto()
2499 print_cacheline(c2c_he->hists, he, &hpp_list, out); in print_pareto()
2541 hists__fprintf(&c2c.hists.hists, true, 0, 0, 0, stdout, true); in perf_c2c__hists_fprintf()
2556 struct rb_node *nd = rb_first_cached(&hb->hists->entries); in c2c_browser__update_nr_entries()
2594 c2c_cacheline_browser__new(struct hists *hists, struct hist_entry *he) in c2c_cacheline_browser__new() argument
2600 hist_browser__init(&browser->hb, hists); in c2c_cacheline_browser__new()
2629 c2c_hists = c2c_he->hists; in perf_c2c__browse_cacheline()
2631 cl_browser = c2c_cacheline_browser__new(&c2c_hists->hists, he); in perf_c2c__browse_cacheline()
2681 perf_c2c_browser__new(struct hists *hists) in perf_c2c_browser__new() argument
2683 struct hist_browser *browser = hist_browser__new(hists); in perf_c2c_browser__new()
2693 static int perf_c2c__hists_browse(struct hists *hists) in perf_c2c__hists_browse() argument
2702 browser = perf_c2c_browser__new(hists); in perf_c2c__hists_browse()
2739 perf_c2c__hists_browse(&c2c.hists.hists); in perf_c2c_display()
3107 err = c2c_hists__init(&c2c.hists, "dcacheline", 2, perf_session__env(session)); in perf_c2c__report()
3191 c2c_hists__reinit(&c2c.hists, output_str, sort_str, perf_session__env(session)); in perf_c2c__report()
3193 ui_progress__init(&prog, c2c.hists.hists.nr_entries, "Sorting..."); in perf_c2c__report()
3195 hists__collapse_resort(&c2c.hists.hists, NULL); in perf_c2c__report()
3196 hists__output_resort_cb(&c2c.hists.hists, &prog, resort_shared_cl_cb); in perf_c2c__report()
3197 hists__iterate_cb(&c2c.hists.hists, resort_cl_cb, perf_session__env(session)); in perf_c2c__report()