Lines Matching refs:hists
49 struct hists hists; member
61 struct c2c_hists *hists; member
86 struct c2c_hists hists; member
166 if (c2c_he->hists) { in c2c_he_free()
167 hists__delete_entries(&c2c_he->hists->hists); in c2c_he_free()
168 free(c2c_he->hists); in c2c_he_free()
183 static int c2c_hists__init(struct c2c_hists *hists,
193 struct c2c_hists *hists; in he__get_c2c_hists() local
197 if (c2c_he->hists) in he__get_c2c_hists()
198 return c2c_he->hists; in he__get_c2c_hists()
200 hists = c2c_he->hists = zalloc(sizeof(*hists)); in he__get_c2c_hists()
201 if (!hists) in he__get_c2c_hists()
204 ret = c2c_hists__init(hists, sort, nr_header_lines); in he__get_c2c_hists()
206 free(hists); in he__get_c2c_hists()
210 return hists; in he__get_c2c_hists()
265 struct c2c_hists *c2c_hists = &c2c.hists; in process_sample_event()
300 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
313 hists__inc_nr_samples(&c2c_hists->hists, he->filtered); in process_sample_event()
334 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
350 hists__inc_nr_samples(&c2c_hists->hists, he->filtered); in process_sample_event()
428 static int symbol_width(struct hists *hists, struct sort_entry *se) in symbol_width() argument
430 int width = hists__col_len(hists, se->se_width_idx); in symbol_width()
440 struct hists *hists) in c2c_width() argument
449 return symbol_width(hists, dim->se); in c2c_width()
451 return dim->se ? hists__col_len(hists, dim->se->se_width_idx) : in c2c_width()
456 struct hists *hists, int line, int *span) in c2c_header() argument
458 struct perf_hpp_list *hpp_list = hists->hpp_list; in c2c_header()
462 int width = c2c_width(fmt, hpp, hists); in c2c_header()
506 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_entry()
520 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_entry()
534 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_count()
544 int width = c2c_width(fmt, hpp, he->hists); in offset_entry()
572 int width = c2c_width(fmt, hpp, he->hists); in iaddr_entry()
593 int width = c2c_width(fmt, hpp, he->hists); in tot_hitm_entry()
626 int width = c2c_width(fmt, hpp, he->hists); \
689 int width = c2c_width(fmt, hpp, he->hists); in tot_recs_entry()
740 int width = c2c_width(fmt, hpp, he->hists); in tot_loads_entry()
774 int width = c2c_width(fmt, hpp, he->hists); in percent_color()
789 struct c2c_hists *hists; in percent_hitm() local
795 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); in percent_hitm()
797 total = &hists->stats; in percent_hitm()
831 int width = c2c_width(fmt, hpp, he->hists); in percent_hitm_entry()
875 struct c2c_hists *hists; in total_stats() local
877 hists = container_of(he->hists, struct c2c_hists, hists); in total_stats()
878 return &hists->stats; in total_stats()
891 struct c2c_hists *hists; \
893 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); \
894 return percent(c2c_he->stats.__f, hists->stats.__f); \
906 int width = c2c_width(fmt, hpp, he->hists); in PERCENT_FN()
937 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_hitm_entry()
968 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1hit_entry()
999 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1miss_entry()
1033 int width = c2c_width(fmt, hpp, he->hists); in STAT_FN()
1162 int width = c2c_width(fmt, hpp, he->hists); in mean_entry()
1187 int width = c2c_width(fmt, hpp, he->hists); in cpucnt_entry()
1201 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_entry()
1214 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_empty_entry()
1690 len = hists__col_len(he->hists, dim->se->se_width_idx); in c2c_se_entry()
1693 len = symbol_width(he->hists, dim->se); in c2c_se_entry()
1826 perf_hpp__append_sort_keys(&hists->list); in hpp_list__parse()
1834 static int c2c_hists__init(struct c2c_hists *hists, in c2c_hists__init() argument
1838 __hists__init(&hists->hists, &hists->list); in c2c_hists__init()
1845 perf_hpp_list__init(&hists->list); in c2c_hists__init()
1848 hists->list.nr_header_lines = nr_header_lines; in c2c_hists__init()
1850 return hpp_list__parse(&hists->list, NULL, sort); in c2c_hists__init()
1932 dim = &c2c.hists == c2c_he->hists ? in set_node_width()
1963 c2c_hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); in calc_width()
1964 hists__calc_col_len(&c2c_hists->hists, &c2c_he->he); in calc_width()
1992 c2c_hists = c2c_he->hists; in resort_cl_cb()
2002 hists__collapse_resort(&c2c_hists->hists, NULL); in resort_cl_cb()
2003 hists__output_resort_cb(&c2c_hists->hists, NULL, filter_cb); in resort_cl_cb()
2089 static int hists__iterate_cb(struct hists *hists, hists__resort_cb_t cb) in hists__iterate_cb() argument
2091 struct rb_node *next = rb_first_cached(&hists->entries); in hists__iterate_cb()
2110 struct c2c_stats *stats = &c2c.hists.stats; in print_c2c__display_stats()
2188 hists__fprintf_headers(&c2c_hists->hists, out); in print_cacheline()
2199 hists__fprintf(&c2c_hists->hists, false, 0, 0, 0, out, false); in print_cacheline()
2222 nd = rb_first_cached(&c2c.hists.hists.entries); in print_pareto()
2232 print_cacheline(c2c_he->hists, he, &hpp_list, out); in print_pareto()
2274 hists__fprintf(&c2c.hists.hists, true, 0, 0, 0, stdout, true); in perf_c2c__hists_fprintf()
2289 struct rb_node *nd = rb_first_cached(&hb->hists->entries); in c2c_browser__update_nr_entries()
2327 c2c_cacheline_browser__new(struct hists *hists, struct hist_entry *he) in c2c_cacheline_browser__new() argument
2333 hist_browser__init(&browser->hb, hists); in c2c_cacheline_browser__new()
2362 c2c_hists = c2c_he->hists; in perf_c2c__browse_cacheline()
2364 cl_browser = c2c_cacheline_browser__new(&c2c_hists->hists, he); in perf_c2c__browse_cacheline()
2414 perf_c2c_browser__new(struct hists *hists) in perf_c2c_browser__new() argument
2416 struct hist_browser *browser = hist_browser__new(hists); in perf_c2c_browser__new()
2426 static int perf_c2c__hists_browse(struct hists *hists) in perf_c2c__hists_browse() argument
2435 browser = perf_c2c_browser__new(hists); in perf_c2c__hists_browse()
2472 perf_c2c__hists_browse(&c2c.hists.hists); in perf_c2c_display()
2791 err = c2c_hists__init(&c2c.hists, "dcacheline", 2); in perf_c2c__report()
2864 c2c_hists__reinit(&c2c.hists, output_str, sort_str); in perf_c2c__report()
2866 ui_progress__init(&prog, c2c.hists.hists.nr_entries, "Sorting..."); in perf_c2c__report()
2868 hists__collapse_resort(&c2c.hists.hists, NULL); in perf_c2c__report()
2869 hists__output_resort_cb(&c2c.hists.hists, &prog, resort_shared_cl_cb); in perf_c2c__report()
2870 hists__iterate_cb(&c2c.hists.hists, resort_cl_cb); in perf_c2c__report()