From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-bw0-f168.google.com (mail-bw0-f168.google.com [209.85.218.168]) by ozlabs.org (Postfix) with ESMTP id 31B71DDD1B for ; Tue, 10 Feb 2009 00:16:24 +1100 (EST) Received: by bwz12 with SMTP id 12so2665996bwz.9 for ; Mon, 09 Feb 2009 05:16:21 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20090209094014.GE7930@elte.hu> References: <20090209094014.GE7930@elte.hu> Date: Mon, 9 Feb 2009 14:08:26 +0100 Message-ID: <9fe197cb0902090508v514808c9wc558c18b96ceaa6a@mail.gmail.com> Subject: Re: [PATCH] ftrace, powerpc64: fix math to calculate offset in TOC From: Remis Lima Baima To: Ingo Molnar Content-Type: text/plain; charset=ISO-8859-1 Cc: Arnd Bergmann , LKML , Steven Rostedt , linuxppc-dev@ozlabs.org, Paul Mackerras List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , I have just tried the patch here and everything worked great! Very well done. On Mon, Feb 9, 2009 at 10:40 AM, Ingo Molnar wrote: > > * Steven Rostedt wrote: > >> >> Paul, >> >> I found the bug that was causing large modules to fail in setting >> up dynamic ftrace. It wound up being a simple math error. To calculate >> the offset in the TOC, I had used an OR, but the bottom half was >> a signed extended short, and it should have been an addition. >> The fix is in my tree below, as well as posted here. > > Looks like a .29 candidate? > > Ingo I agree. A functional ("out-of-the-box") dynamic-ftrace helps quite a lot ;-) Regards, Remis