From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753477AbcDFOdM (ORCPT ); Wed, 6 Apr 2016 10:33:12 -0400 Received: from e37.co.us.ibm.com ([32.97.110.158]:33908 "EHLO e37.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752028AbcDFOdK (ORCPT ); Wed, 6 Apr 2016 10:33:10 -0400 X-IBM-Helo: d03dlp02.boulder.ibm.com X-IBM-MailFrom: ananth@in.ibm.com X-IBM-RcptTo: linux-kernel@vger.kernel.org Date: Wed, 6 Apr 2016 20:02:58 +0530 From: Ananth N Mavinakayanahalli To: "Naveen N. Rao" Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Mark Wielaard , Thiago Jung Bauermann , Arnaldo Carvalho de Melo , Masami Hiramatsu Subject: Re: [PATCH 2/2] tools/perf: Fix kallsyms perf test on ppc64le Message-ID: <20160406143258.GA3620@in.ibm.com> Reply-To: ananth@in.ibm.com References: <04f25362721352e7681db4aed572b3ea5154b64d.1459942081.git.naveen.n.rao@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <04f25362721352e7681db4aed572b3ea5154b64d.1459942081.git.naveen.n.rao@linux.vnet.ibm.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16040614-0025-0000-0000-0000297C27A5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 06, 2016 at 06:02:58PM +0530, Naveen N. Rao wrote: > ppc64le functions have a Global Entry Point (GEP) and a Local Entry > Point (LEP). While placing a probe, we always prefer the LEP since it > catches function calls through both the GEP and the LEP. In order to do > this, we fixup the function entry points during elf symbol table lookup > to point to the LEPs. This works, but breaks 'perf test kallsyms' since > the symbols loaded from the symbol table (pointing to the LEP) do not > match the symbols in kallsyms. > > To fix this, we do not adjust all the symbols during symbol table load, > but only adjust the probe trace point. > > Cc: Mark Wielaard > Cc: Thiago Jung Bauermann > Cc: Ananth N Mavinakayanahalli > Cc: Arnaldo Carvalho de Melo > Cc: Masami Hiramatsu > Reported-by: Michael Ellerman > Signed-off-by: Naveen N. Rao Acked-by: Ananth N Mavinakayanahalli