From: Namhyung Kim <namhy...@kernel.org>

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 <namhy...@kernel.org>
Link: 
http://lkml.kernel.org/r/1398327843-31845-6-git-send-email-namhy...@kernel.org
Signed-off-by: Jiri Olsa <jo...@kernel.org>
---
 tools/perf/util/hist.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c
index b675857..8d5cfcc 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
        if (h->filtered)
                return;
 
-       if (h->ms.unfolded)
-               hists->nr_non_filtered_entries += h->nr_rows;
+       /* force fold unfiltered entry for simplicity */
+       h->ms.unfolded = false;
        h->row_offset = 0;
 
        hists->stats.nr_non_filtered_samples += h->stat.nr_events;
-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to