Lines Matching refs:hists

76 static int add_hist_entries(struct hists *hists, struct machine *machine)  in add_hist_entries()  argument
79 struct perf_evsel *evsel = hists_to_evsel(hists); in add_hist_entries()
123 static void del_hist_entries(struct hists *hists) in del_hist_entries() argument
131 root_in = &hists->entries_collapsed; in del_hist_entries()
133 root_in = hists->entries_in; in del_hist_entries()
135 root_out = &hists->entries; in del_hist_entries()
174 static int do_test(struct hists *hists, struct result *expected, size_t nr_expected, in do_test() argument
189 hists__collapse_resort(hists, NULL); in do_test()
190 hists__output_resort(hists, NULL); in do_test()
196 print_hists_out(hists); in do_test()
199 root = &hists->entries; in do_test()
248 struct hists *hists = evsel__hists(evsel); in test1() local
282 err = add_hist_entries(hists, machine); in test1()
286 err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0); in test1()
289 del_hist_entries(hists); in test1()
298 struct hists *hists = evsel__hists(evsel); in test2() local
428 err = add_hist_entries(hists, machine); in test2()
432 err = do_test(hists, expected, ARRAY_SIZE(expected), in test2()
436 del_hist_entries(hists); in test2()
445 struct hists *hists = evsel__hists(evsel); in test3() local
485 err = add_hist_entries(hists, machine); in test3()
489 err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0); in test3()
492 del_hist_entries(hists); in test3()
501 struct hists *hists = evsel__hists(evsel); in test4() local
668 err = add_hist_entries(hists, machine); in test4()
672 err = do_test(hists, expected, ARRAY_SIZE(expected), in test4()
676 del_hist_entries(hists); in test4()