From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934597AbcATBYk (ORCPT ); Tue, 19 Jan 2016 20:24:40 -0500 Received: from LGEAMRELO11.lge.com ([156.147.23.51]:37105 "EHLO lgeamrelo11.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934257AbcATBPY (ORCPT ); Tue, 19 Jan 2016 20:15:24 -0500 X-Original-SENDERIP: 156.147.1.125 X-Original-MAILFROM: namhyung@kernel.org X-Original-SENDERIP: 10.177.227.17 X-Original-MAILFROM: namhyung@kernel.org From: Namhyung Kim To: Arnaldo Carvalho de Melo Cc: Ingo Molnar , Peter Zijlstra , Jiri Olsa , LKML , David Ahern , Stephane Eranian , Andi Kleen , Wang Nan Subject: [PATCH v2 04.1/17] perf hists: Remove parent filter check in DSO filter function Date: Wed, 20 Jan 2016 10:15:20 +0900 Message-Id: <1453252521-24398-1-git-send-email-namhyung@kernel.org> X-Mailer: git-send-email 2.7.0 In-Reply-To: <20160119203910.GE27085@kernel.org> References: <20160119203910.GE27085@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 9354455aec5b..7c9af05726ad 100644 --- a/tools/perf/util/hist.c +++ b/tools/perf/util/hist.c @@ -1483,9 +1483,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; -- 2.7.0