Lines Matching refs:hists
78 struct hists *hists = evsel__hists(evsel);
89 he = hists__add_entry(hists, &al, NULL,
108 he = hists__add_entry(hists, &al, NULL,
141 static int __validate_match(struct hists *hists)
150 if (hists__has(hists, need_collapse))
151 root = &hists->entries_collapsed;
153 root = hists->entries_in;
184 static int validate_match(struct hists *leader, struct hists *other)
189 static int __validate_link(struct hists *hists, int idx)
198 * Leader hists (idx = 0) will have dummy entries from other,
200 * in other hists should have (dummy) pair.
202 if (hists__has(hists, need_collapse))
203 root = &hists->entries_collapsed;
205 root = hists->entries_in;
224 pr_debug("A entry from the other hists should have pair\n");
233 * Note that we have a entry collapsed in the other (idx = 1) hists.
253 pr_debug("Other hists should not have dummy entries: %zd\n",
262 static int validate_link(struct hists *leader, struct hists *other)
270 struct hists *hists, *first_hists;
307 hists = evsel__hists(evsel);
308 hists__collapse_resort(hists, NULL);
311 print_hists_in(hists);
318 hists = evsel__hists(evsel);
321 hists__match(first_hists, hists);
322 err = validate_match(first_hists, hists);
327 hists__link(first_hists, hists);
328 err = validate_link(first_hists, hists);