From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752277AbcIIFvD (ORCPT ); Fri, 9 Sep 2016 01:51:03 -0400 Received: from terminus.zytor.com ([198.137.202.10]:37268 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751350AbcIIFvA (ORCPT ); Fri, 9 Sep 2016 01:51:00 -0400 Date: Thu, 8 Sep 2016 22:50:48 -0700 From: tip-bot for Arnaldo Carvalho de Melo Message-ID: Cc: mingo@kernel.org, linux-kernel@vger.kernel.org, mhiramat@kernel.org, wangnan0@huawei.com, acme@redhat.com, namhyung@kernel.org, adrian.hunter@intel.com, dsahern@gmail.com, tglx@linutronix.de, jolsa@kernel.org, hpa@zytor.com Reply-To: hpa@zytor.com, tglx@linutronix.de, jolsa@kernel.org, adrian.hunter@intel.com, dsahern@gmail.com, namhyung@kernel.org, acme@redhat.com, wangnan0@huawei.com, mingo@kernel.org, linux-kernel@vger.kernel.org, mhiramat@kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf test vmlinux: Remove dead symbol_filter_t code Git-Commit-ID: c79c809197bf4faaf109d1a7bdc27ecedac375de 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: c79c809197bf4faaf109d1a7bdc27ecedac375de Gitweb: http://git.kernel.org/tip/c79c809197bf4faaf109d1a7bdc27ecedac375de Author: Arnaldo Carvalho de Melo AuthorDate: Thu, 1 Sep 2016 19:22:02 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 5 Sep 2016 11:14:50 -0300 perf test vmlinux: Remove dead symbol_filter_t code We don't need to initialize that area as we're not using it afterwards, leftover, ditch it. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-jb2un8buy4rqawz73mcdm1sn@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/tests/vmlinux-kallsyms.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/tools/perf/tests/vmlinux-kallsyms.c b/tools/perf/tests/vmlinux-kallsyms.c index 77513bf..e6925d6 100644 --- a/tools/perf/tests/vmlinux-kallsyms.c +++ b/tools/perf/tests/vmlinux-kallsyms.c @@ -8,14 +8,6 @@ #include "debug.h" #include "machine.h" -static int vmlinux_matches_kallsyms_filter(struct map *map __maybe_unused, - struct symbol *sym) -{ - bool *visited = symbol__priv(sym); - *visited = true; - return 0; -} - #define UM(x) kallsyms_map->unmap_ip(kallsyms_map, (x)) int test__vmlinux_matches_kallsyms(int subtest __maybe_unused) @@ -100,8 +92,7 @@ int test__vmlinux_matches_kallsyms(int subtest __maybe_unused) * maps__reloc_vmlinux will notice and set proper ->[un]map_ip routines * to fixup the symbols. */ - if (machine__load_vmlinux_path(&vmlinux, type, - vmlinux_matches_kallsyms_filter) <= 0) { + if (machine__load_vmlinux_path(&vmlinux, type, NULL) <= 0) { pr_debug("Couldn't find a vmlinux that matches the kernel running on this machine, skipping test\n"); err = TEST_SKIP; goto out;