evlist__for_each_entry(evlist, pos) {
struct hists *hists = evsel__hists(pos);
+ /*
+ * unlink existing entries so that they can be linked
+ * in a correct order in hists__match() below.
+ */
+ hists__unlink(hists);
+
if (evlist->enabled) {
if (t->zero) {
hists__delete_entries(hists);