From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754560AbcBCKIY (ORCPT ); Wed, 3 Feb 2016 05:08:24 -0500 Received: from terminus.zytor.com ([198.137.202.10]:54321 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754389AbcBCKIU (ORCPT ); Wed, 3 Feb 2016 05:08:20 -0500 Date: Wed, 3 Feb 2016 02:07:41 -0800 From: tip-bot for Namhyung Kim Message-ID: Cc: mingo@kernel.org, hpa@zytor.com, tglx@linutronix.de, a.p.zijlstra@chello.nl, acme@redhat.com, linux-kernel@vger.kernel.org, dsahern@gmail.com, namhyung@kernel.org, jolsa@kernel.org, penberg@kernel.org, wangnan0@huawei.com, andi@firstfloor.org, eranian@google.com Reply-To: dsahern@gmail.com, linux-kernel@vger.kernel.org, jolsa@kernel.org, penberg@kernel.org, namhyung@kernel.org, andi@firstfloor.org, wangnan0@huawei.com, eranian@google.com, mingo@kernel.org, tglx@linutronix.de, hpa@zytor.com, acme@redhat.com, a.p.zijlstra@chello.nl In-Reply-To: <1453252521-24398-1-git-send-email-namhyung@kernel.org> References: <1453252521-24398-1-git-send-email-namhyung@kernel.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf hists: Remove parent filter check in DSO filter function Git-Commit-ID: c84a5d16711619621f368e84a179790df3377c87 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: c84a5d16711619621f368e84a179790df3377c87 Gitweb: http://git.kernel.org/tip/c84a5d16711619621f368e84a179790df3377c87 Author: Namhyung Kim AuthorDate: Wed, 20 Jan 2016 10:15:20 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 26 Jan 2016 11:52:44 -0300 perf hists: Remove parent filter check in DSO filter function The --exclude-other option sets HIST_FILTER__PARENT bit and it's only set when a hist entry was created. DSO filters don't change this so no need to have the check in hists__filter_by_dso() IMHO. Signed-off-by: Namhyung Kim Acked-by: Jiri Olsa Acked-by: Pekka Enberg Cc: Andi Kleen Cc: David Ahern Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Wang Nan Link: http://lkml.kernel.org/r/1453252521-24398-1-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/hist.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c index 68a7612..1d8c8ea 100644 --- a/tools/perf/util/hist.c +++ b/tools/perf/util/hist.c @@ -1266,9 +1266,6 @@ void hists__filter_by_dso(struct hists *hists) for (nd = rb_first(&hists->entries); nd; nd = rb_next(nd)) { struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node); - if (symbol_conf.exclude_other && !h->parent) - continue; - if (hists__filter_entry_by_dso(hists, h)) continue;