From: Arnaldo Carvalho de Melo Date: Mon, 13 Jul 2015 11:21:57 +0000 (-0300) Subject: perf symbols: Store if there is a filter in place X-Git-Tag: v4.1.5~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=ace89c9942b31342c008d26601ad7f89dfeedb06;p=users%2Fjedix%2Flinux-maple.git perf symbols: Store if there is a filter in place commit 0bc2f2f7d080561cc484d2d0a162a9396bed3383 upstream. When setting yup the symbols library we setup several filter lists, for dsos, comms, symbols, etc, and there is code that, if there are filters, do certain operations, like recalculate the number of non filtered histogram entries in the top/report TUI. But they were considering just the "Zoom" filters, when they need to take into account as well the above mentioned filters (perf top --comms, --dsos, etc). So store in symbol_conf.has_filter true if any of those filters is in place. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Namhyung Kim Cc: Stephane Eranian Link: http://lkml.kernel.org/n/tip-f5edfmhq69vfvs1kmikq1wep@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo Cc: Andre Tomt Signed-off-by: Greg Kroah-Hartman --- diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c index 201f6c4ca738d..99378a5c57a76 100644 --- a/tools/perf/util/symbol.c +++ b/tools/perf/util/symbol.c @@ -1893,6 +1893,8 @@ int setup_intlist(struct intlist **list, const char *list_str, pr_err("problems parsing %s list\n", list_name); return -1; } + + symbol_conf.has_filter = true; return 0; } diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h index 09561500164a0..be0217989bcce 100644 --- a/tools/perf/util/symbol.h +++ b/tools/perf/util/symbol.h @@ -105,7 +105,8 @@ struct symbol_conf { demangle_kernel, filter_relative, show_hist_headers, - branch_callstack; + branch_callstack, + has_filter; const char *vmlinux_name, *kallsyms_name, *source_prefix,