From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932597AbcHKLv1 (ORCPT ); Thu, 11 Aug 2016 07:51:27 -0400 Received: from mail.kernel.org ([198.145.29.136]:57708 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932166AbcHKLub (ORCPT ); Thu, 11 Aug 2016 07:50:31 -0400 Date: Thu, 11 Aug 2016 08:50:26 -0300 From: Arnaldo Carvalho de Melo To: Ravi Bangoria Cc: Anton Blanchard , linux-kernel@vger.kernel.org, peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com, bsingharora@gmail.com, naveen.n.rao@linux.vnet.ibm.com, ananth@in.ibm.com, mhiramat@kernel.org, wangnan0@huawei.com, namhyung@kernel.org Subject: Re: [PATCH 2/2] perf ppc64le: Fix probe location when using DWARF Message-ID: <20160811115026.GA27651@kernel.org> References: <1470723805-5081-1-git-send-email-ravi.bangoria@linux.vnet.ibm.com> <1470723805-5081-2-git-send-email-ravi.bangoria@linux.vnet.ibm.com> <20160811095457.415aa94e@kryten> <57ABFF88.8030905@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57ABFF88.8030905@linux.vnet.ibm.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.6.2 (2016-07-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, Aug 11, 2016 at 10:01:04AM +0530, Ravi Bangoria escreveu: > > > On Thursday 11 August 2016 05:24 AM, Anton Blanchard wrote: > > Hi, > > > > > Powerpc has Global Entry Point and Local Entry Point for functions. > > > LEP catches call from both the GEP and the LEP. Symbol table of ELF > > > contains GEP and Offset from which we can calculate LEP, but debuginfo > > > does not have LEP info. > > > > > > Currently, perf prioritize symbol table over dwarf to probe on LEP > > > for ppc64le. But when user tries to probe with function parameter, > > > we fall back to using dwarf(i.e. GEP) and when function called via > > > LEP, probe will never hit. > > This patch causes a build failure for me on ppc64le: > > > > libperf.a(libperf-in.o): In function `arch__post_process_probe_trace_events': > > > > tools/perf/arch/powerpc/util/sym-handling.c:109: undefined reference to `get_target_map' > > Thanks Anton. Sorry, I should have caught that. > > @Arnaldo, Can you please pick this up. I've prepared this on top of > acme/perf/core. > > > From 89c977ae9c3ae35c78b16cddabcf2b01d3cf5cc8 Mon Sep 17 00:00:00 2001 > From: Ravi Bangoria > Date: Wed, 10 Aug 2016 23:13:45 -0500 > Subject: [PATCH] perf ppc64le: Fix build failure when no dwarf support > > Fix perf build failure on ppc64le because of Commit 99e608b5954c ("perf > probe ppc64le: Fix probe location when using DWARF") Can you please provide a better explanation? I had to look at the patch to understand what it was fixing, and then the patch adds LIBELF_SUPPORT ifdefs while the patch description, talks about DWARF. Anyway, Anton, does this fix the problem for you? - Arnaldo > Signed-off-by: Ravi Bangoria > --- > tools/perf/arch/powerpc/util/sym-handling.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tools/perf/arch/powerpc/util/sym-handling.c > b/tools/perf/arch/powerpc/util/sym-handling.c > index 8d4dc97..c27a51a 100644 > --- a/tools/perf/arch/powerpc/util/sym-handling.c > +++ b/tools/perf/arch/powerpc/util/sym-handling.c > @@ -97,6 +97,7 @@ void arch__fix_tev_from_maps(struct perf_probe_event *pev, > } > } > > +#ifdef HAVE_LIBELF_SUPPORT > void arch__post_process_probe_trace_events(struct perf_probe_event *pev, > int ntevs) > { > @@ -118,5 +119,6 @@ void arch__post_process_probe_trace_events(struct > perf_probe_event *pev, > } > } > } > +#endif > > #endif > -- > 2.7.4