From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751753AbbGOMBQ (ORCPT ); Wed, 15 Jul 2015 08:01:16 -0400 Received: from terminus.zytor.com ([198.137.202.10]:52801 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750772AbbGOMBO (ORCPT ); Wed, 15 Jul 2015 08:01:14 -0400 Date: Wed, 15 Jul 2015 05:00:47 -0700 From: tip-bot for Arnaldo Carvalho de Melo Message-ID: Cc: tglx@linutronix.de, jolsa@redhat.com, adrian.hunter@intel.com, acme@redhat.com, bp@suse.de, fweisbec@gmail.com, linux-kernel@vger.kernel.org, eranian@google.com, namhyung@kernel.org, dsahern@gmail.com, mingo@kernel.org, hpa@zytor.com Reply-To: adrian.hunter@intel.com, tglx@linutronix.de, jolsa@redhat.com, namhyung@kernel.org, linux-kernel@vger.kernel.org, eranian@google.com, fweisbec@gmail.com, bp@suse.de, acme@redhat.com, mingo@kernel.org, dsahern@gmail.com, hpa@zytor.com To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/urgent] perf symbols: Store if there is a filter in place Git-Commit-ID: 0bc2f2f7d080561cc484d2d0a162a9396bed3383 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 0bc2f2f7d080561cc484d2d0a162a9396bed3383 Gitweb: http://git.kernel.org/tip/0bc2f2f7d080561cc484d2d0a162a9396bed3383 Author: Arnaldo Carvalho de Melo AuthorDate: Mon, 13 Jul 2015 08:21:57 -0300 Committer: Arnaldo Carvalho de Melo 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 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 --- tools/perf/util/symbol.c | 2 ++ tools/perf/util/symbol.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c index 48b588c..60f1141 100644 --- a/tools/perf/util/symbol.c +++ b/tools/perf/util/symbol.c @@ -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; } diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h index bef47ead..b98ce51 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,