Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 87e90f43 authored by Namhyung Kim's avatar Namhyung Kim Committed by Jiri Olsa
Browse files

perf hists: Collapse expanded callchains after filter is applied



When a filter is applied a hist entry checks whether its callchain was
folded and account it to the output stat.  But this is rather hacky
and only TUI-specific.  Simply fold the callchains for the entry looks
like a simpler and more generic solution IMHO.

Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1398327843-31845-6-git-send-email-namhyung@kernel.org


Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
parent 9283ba9b
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -716,8 +716,8 @@ static void hists__remove_entry_filter(struct hists *hists, struct hist_entry *h
	if (h->filtered)
	if (h->filtered)
		return;
		return;


	if (h->ms.unfolded)
	/* force fold unfiltered entry for simplicity */
		hists->nr_non_filtered_entries += h->nr_rows;
	h->ms.unfolded = false;
	h->row_offset = 0;
	h->row_offset = 0;


	hists->stats.nr_non_filtered_samples += h->stat.nr_events;
	hists->stats.nr_non_filtered_samples += h->stat.nr_events;