Lines Matching refs:hists
81 struct hists *hists = evsel__hists(evsel);
92 he = hists__add_entry(hists, &al, NULL,
112 he = hists__add_entry(hists, &al, NULL,
160 static int __validate_match(struct hists *hists)
169 if (hists__has(hists, need_collapse))
170 root = &hists->entries_collapsed;
172 root = hists->entries_in;
203 static int validate_match(struct hists *leader, struct hists *other)
208 static int __validate_link(struct hists *hists, int idx)
217 * Leader hists (idx = 0) will have dummy entries from other,
219 * in other hists should have (dummy) pair.
221 if (hists__has(hists, need_collapse))
222 root = &hists->entries_collapsed;
224 root = hists->entries_in;
243 pr_debug("A entry from the other hists should have pair\n");
252 * Note that we have a entry collapsed in the other (idx = 1) hists.
272 pr_debug("Other hists should not have dummy entries: %zd\n",
281 static int validate_link(struct hists *leader, struct hists *other)
289 struct hists *hists, *first_hists;
326 hists = evsel__hists(evsel);
327 hists__collapse_resort(hists, NULL);
330 print_hists_in(hists);
337 hists = evsel__hists(evsel);
340 hists__match(first_hists, hists);
341 err = validate_match(first_hists, hists);
346 hists__link(first_hists, hists);
347 err = validate_link(first_hists, hists);
363 DEFINE_SUITE("Match and link multiple hists", hists_link);