perf symbols: Store if there is a filter in place
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 0bc2f2f7d080561cc484d2d0a162a9396bed3383 Gitweb: http://git.kernel.org/tip/0bc2f2f7d080561cc484d2d0a162a9396bed3383 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Mon, 13 Jul 2015 08:21:57 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Mon, 13 Jul 2015 08:21:57 -0300
perf symbols: Store if there is a filter in place
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 <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc David Ahern <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Stephane Eranian <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/util/symbol.c | 2 ++ tools/perf/util/symbol.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-)
tools/perf/util/symbol.c +2 -0
@@ -1911,6 +1911,8 @@ int setup_list(struct strlist **list, const char *list_str,pr_err ("problems parsing %s list\n" , list_name);return -1 ; } + + symbol_conf.has_filter = true;return 0 ; }
tools/perf/util/symbol.h +2 -1
@@ -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,