diff options
author | Namhyung Kim <namhyung@kernel.org> | 2014-04-24 03:44:16 -0400 |
---|---|---|
committer | Jiri Olsa <jolsa@kernel.org> | 2014-04-24 10:31:50 -0400 |
commit | 87e90f43285f4096e9ba5fc18b05c2e04caf3fab (patch) | |
tree | 15471067776fb84f5c97df2af9718fdbad985c8c /tools | |
parent | 9283ba9bd77a6940ecad8721429131d773c704b8 (diff) |
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: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1398327843-31845-6-git-send-email-namhyung@kernel.org
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/hist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c index b675857883a2..8d5cfcc3bc63 100644 --- a/tools/perf/util/hist.c +++ b/tools/perf/util/hist.c | |||
@@ -716,8 +716,8 @@ static void hists__remove_entry_filter(struct hists *hists, struct hist_entry *h | |||
716 | if (h->filtered) | 716 | if (h->filtered) |
717 | return; | 717 | return; |
718 | 718 | ||
719 | if (h->ms.unfolded) | 719 | /* force fold unfiltered entry for simplicity */ |
720 | hists->nr_non_filtered_entries += h->nr_rows; | 720 | h->ms.unfolded = false; |
721 | h->row_offset = 0; | 721 | h->row_offset = 0; |
722 | 722 | ||
723 | hists->stats.nr_non_filtered_samples += h->stat.nr_events; | 723 | hists->stats.nr_non_filtered_samples += h->stat.nr_events; |