From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E57C32C0084 for ; Thu, 17 Oct 2013 10:02:04 +1100 (EST) Message-ID: <1381964508.17841.65.camel@pasglop> Subject: Re: Perf not resolving all symbols, showing 0x7ffffxxx From: Benjamin Herrenschmidt To: Martin Hicks Date: Wed, 16 Oct 2013 18:01:48 -0500 In-Reply-To: References: <1381851009.17841.14.camel@pasglop> <1381866837.17841.21.camel@pasglop> <1381868527.7979.713.camel@snotra.buserror.net> <1381869590.17841.23.camel@pasglop> <1381948928.17841.38.camel@pasglop> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Cc: Scott Wood , linuxppc-dev@lists.ozlabs.org, Anton Blanchard List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 2013-10-16 at 17:16 -0400, Martin Hicks wrote: > That does fix the problem. v3.11 with the following: > > diff --git a/arch/powerpc/perf/core-book3s.c b/arch/powerpc/perf/core-book3s.c > index eeae308..e91cf67 100644 > --- a/arch/powerpc/perf/core-book3s.c > +++ b/arch/powerpc/perf/core-book3s.c > @@ -124,7 +124,7 @@ static inline void power_pmu_bhrb_read(struct > cpu_hw_events *cpuhw) {} > > static bool regs_use_siar(struct pt_regs *regs) > { > - return !!regs->result; > + return 0; //!!regs->result; > } Ok, we probably need that function to do that on machines with no backend :-) Either that or properly clear regs->result always. I've had a quick look through perf and I admit I'm not sure of all the ways perf ends up populating "regs" here and how many holes there is in that scheme :-) Anton? How do you know for sure regs is always be cooked by your stuff (for regs->result) ? Ben.