From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751567AbcDKElw (ORCPT ); Mon, 11 Apr 2016 00:41:52 -0400 Received: from ozlabs.org ([103.22.144.67]:51369 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750783AbcDKElu (ORCPT ); Mon, 11 Apr 2016 00:41:50 -0400 Message-ID: <1460349706.3444.2.camel@ellerman.id.au> Subject: Re: [PATCH 0/2] perf probe fixes for ppc64le From: Michael Ellerman To: "Naveen N. Rao" , Balbir Singh Cc: linux-kernel@vger.kernel.org, Mark Wielaard , Arnaldo Carvalho de Melo , Masami Hiramatsu , Thiago Jung Bauermann , linuxppc-dev@lists.ozlabs.org Date: Mon, 11 Apr 2016 14:41:46 +1000 In-Reply-To: <20160409134239.GL15993@naverao1-tp.in.ibm.com> References: <57061802.7020508@gmail.com> <20160407092636.GK15993@naverao1-tp.in.ibm.com> <1460098663.6475.6.camel@gmail.com> <20160409134239.GL15993@naverao1-tp.in.ibm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.5-1ubuntu3.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2016-04-09 at 19:12 +0530, Naveen N. Rao wrote: > > I suppose this boils down to the quirkiness of ABIv2. Though, in > reality, I don't think most users will notice. As I stated above, users > will most likely start with the disassembly or debuginfo and this patch > ensures there are actually no surprises there. Yeah it's unfortunate that we have to handle these two cases differently. But I think you've chosen the right trade off. When we are just given the name we *must not* use the global entry point, otherwise the probes will often not hit - because most calls go to the local entry point and skip the global entry point entirely. When we're given a name and offset, it's less confusing if we use the global entry point as the base for the offset calculation. So for the concept: Acked-by: Michael Ellerman I don't really know this part of the perf code enough to give you an ack for the actual changes, I'll leave that to the perf maintainers. cheers