Lines Matching refs:hists

80 static int add_hist_entries(struct hists *hists, struct machine *machine)  in add_hist_entries()  argument
83 struct evsel *evsel = hists_to_evsel(hists); in add_hist_entries()
126 static void del_hist_entries(struct hists *hists) in del_hist_entries() argument
133 if (hists__has(hists, need_collapse)) in del_hist_entries()
134 root_in = &hists->entries_collapsed; in del_hist_entries()
136 root_in = hists->entries_in; in del_hist_entries()
138 root_out = &hists->entries; in del_hist_entries()
177 static int do_test(struct hists *hists, struct result *expected, size_t nr_expected, in do_test() argument
192 hists__collapse_resort(hists, NULL); in do_test()
193 evsel__output_resort(hists_to_evsel(hists), NULL); in do_test()
199 print_hists_out(hists); in do_test()
202 root = &hists->entries.rb_root; in do_test()
253 struct hists *hists = evsel__hists(evsel); in test1() local
288 err = add_hist_entries(hists, machine); in test1()
292 err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0); in test1()
295 del_hist_entries(hists); in test1()
304 struct hists *hists = evsel__hists(evsel); in test2() local
435 err = add_hist_entries(hists, machine); in test2()
439 err = do_test(hists, expected, ARRAY_SIZE(expected), in test2()
443 del_hist_entries(hists); in test2()
452 struct hists *hists = evsel__hists(evsel); in test3() local
493 err = add_hist_entries(hists, machine); in test3()
497 err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0); in test3()
500 del_hist_entries(hists); in test3()
509 struct hists *hists = evsel__hists(evsel); in test4() local
679 err = add_hist_entries(hists, machine); in test4()
683 err = do_test(hists, expected, ARRAY_SIZE(expected), in test4()
687 del_hist_entries(hists); in test4()