From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754896AbZHDLie (ORCPT ); Tue, 4 Aug 2009 07:38:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754674AbZHDLid (ORCPT ); Tue, 4 Aug 2009 07:38:33 -0400 Received: from hera.kernel.org ([140.211.167.34]:44885 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754520AbZHDLia (ORCPT ); Tue, 4 Aug 2009 07:38:30 -0400 Date: Tue, 4 Aug 2009 11:37:56 GMT From: tip-bot for Ingo Molnar To: linux-tip-commits@vger.kernel.org Cc: linux-kernel@vger.kernel.org, acme@redhat.com, paulus@samba.org, hpa@zytor.com, mingo@redhat.com, a.p.zijlstra@chello.nl, efault@gmx.de, tglx@linutronix.de, mingo@elte.hu Reply-To: mingo@redhat.com, hpa@zytor.com, paulus@samba.org, acme@redhat.com, linux-kernel@vger.kernel.org, a.p.zijlstra@chello.nl, efault@gmx.de, tglx@linutronix.de, mingo@elte.hu In-Reply-To: References: Subject: [tip:perfcounters/urgent] perf_counter tools: Provide default bfd_demangle() function in case it's not around Message-ID: Git-Commit-ID: 238762507bb41689df191160ada1986b012b57df X-Mailer: tip-git-log-daemon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (hera.kernel.org [127.0.0.1]); Tue, 04 Aug 2009 11:37:57 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 238762507bb41689df191160ada1986b012b57df Gitweb: http://git.kernel.org/tip/238762507bb41689df191160ada1986b012b57df Author: Ingo Molnar AuthorDate: Tue, 4 Aug 2009 13:27:41 +0200 Committer: Ingo Molnar CommitDate: Tue, 4 Aug 2009 13:27:43 +0200 perf_counter tools: Provide default bfd_demangle() function in case it's not around Provide weak alias (which does nothing) in case the system does not offer one. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Paul Mackerras Cc: Arnaldo Carvalho de Melo LKML-Reference: Signed-off-by: Ingo Molnar --- tools/perf/util/symbol.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c index b4fe057..7bd5128 100644 --- a/tools/perf/util/symbol.c +++ b/tools/perf/util/symbol.c @@ -8,6 +8,17 @@ #include #include +/* + * Weak wrapper in case a library version is not available: + */ +extern char * __attribute__((weak)) bfd_demangle (bfd *, const char *, int); + +char * __attribute__((weak)) + bfd_demangle (bfd *bfd __used, const char *name __used, int flags __used) +{ + return NULL; +} + const char *sym_hist_filter; #ifndef DMGL_PARAMS