* Re: [PATCH] ftrace, powerpc64: fix math to calculate offset in TOC
@ 2009-02-09 9:40 ` Ingo Molnar
0 siblings, 0 replies; 14+ messages in thread
From: Ingo Molnar @ 2009-02-09 9:40 UTC (permalink / raw)
To: Steven Rostedt
Cc: LKML, linuxppc-dev, Paul Mackerras, Benjamin Herrenschmidt,
Arnd Bergmann, Geoff Levand, Remis Lima Baima
* Steven Rostedt <rostedt@goodmis.org> 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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] ftrace, powerpc64: fix math to calculate offset in TOC
2009-02-09 9:40 ` Ingo Molnar
@ 2009-02-09 13:08 ` Remis Lima Baima
-1 siblings, 0 replies; 14+ messages in thread
From: Remis Lima Baima @ 2009-02-09 13:08 UTC (permalink / raw)
To: Ingo Molnar
Cc: Arnd Bergmann, LKML, Steven Rostedt, linuxppc-dev, Paul Mackerras
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 <mingo@elte.hu> wrote:
>
> * Steven Rostedt <rostedt@goodmis.org> 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
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH] ftrace, powerpc64: fix math to calculate offset in TOC
@ 2009-02-09 13:08 ` Remis Lima Baima
0 siblings, 0 replies; 14+ messages in thread
From: Remis Lima Baima @ 2009-02-09 13:08 UTC (permalink / raw)
To: Ingo Molnar
Cc: Steven Rostedt, LKML, linuxppc-dev, Paul Mackerras,
Benjamin Herrenschmidt, Arnd Bergmann, Geoff Levand
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 <mingo@elte.hu> wrote:
>
> * Steven Rostedt <rostedt@goodmis.org> 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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] ftrace, powerpc64: fix math to calculate offset in TOC
2009-02-09 9:40 ` Ingo Molnar
@ 2009-02-09 15:02 ` Steven Rostedt
-1 siblings, 0 replies; 14+ messages in thread
From: Steven Rostedt @ 2009-02-09 15:02 UTC (permalink / raw)
To: Ingo Molnar
Cc: Arnd Bergmann, LKML, linuxppc-dev, Paul Mackerras,
Remis Lima Baima
On Mon, 9 Feb 2009, Ingo Molnar wrote:
>
> * Steven Rostedt <rostedt@goodmis.org> 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 think Ben pulled them into their tree. The changes are specific to ppc,
and will probably get better user testing there. Unless you feel that we
have a bit of ppc testers using tip.
-- Steve
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] ftrace, powerpc64: fix math to calculate offset in TOC
@ 2009-02-09 15:02 ` Steven Rostedt
0 siblings, 0 replies; 14+ messages in thread
From: Steven Rostedt @ 2009-02-09 15:02 UTC (permalink / raw)
To: Ingo Molnar
Cc: LKML, linuxppc-dev, Paul Mackerras, Benjamin Herrenschmidt,
Arnd Bergmann, Geoff Levand, Remis Lima Baima
On Mon, 9 Feb 2009, Ingo Molnar wrote:
>
> * Steven Rostedt <rostedt@goodmis.org> 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 think Ben pulled them into their tree. The changes are specific to ppc,
and will probably get better user testing there. Unless you feel that we
have a bit of ppc testers using tip.
-- Steve
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] ftrace, powerpc64: fix math to calculate offset in TOC
2009-02-09 15:02 ` Steven Rostedt
@ 2009-02-09 15:24 ` Ingo Molnar
-1 siblings, 0 replies; 14+ messages in thread
From: Ingo Molnar @ 2009-02-09 15:24 UTC (permalink / raw)
To: Steven Rostedt
Cc: Arnd Bergmann, LKML, linuxppc-dev, Paul Mackerras,
Remis Lima Baima
* Steven Rostedt <rostedt@goodmis.org> wrote:
>
> On Mon, 9 Feb 2009, Ingo Molnar wrote:
>
> >
> > * Steven Rostedt <rostedt@goodmis.org> 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 think Ben pulled them into their tree. The changes are specific to ppc,
> and will probably get better user testing there. Unless you feel that we
> have a bit of ppc testers using tip.
no, that's fine - just wanted to make sure it goes upstream via some method.
Ingo
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] ftrace, powerpc64: fix math to calculate offset in TOC
@ 2009-02-09 15:24 ` Ingo Molnar
0 siblings, 0 replies; 14+ messages in thread
From: Ingo Molnar @ 2009-02-09 15:24 UTC (permalink / raw)
To: Steven Rostedt
Cc: LKML, linuxppc-dev, Paul Mackerras, Benjamin Herrenschmidt,
Arnd Bergmann, Geoff Levand, Remis Lima Baima
* Steven Rostedt <rostedt@goodmis.org> wrote:
>
> On Mon, 9 Feb 2009, Ingo Molnar wrote:
>
> >
> > * Steven Rostedt <rostedt@goodmis.org> 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 think Ben pulled them into their tree. The changes are specific to ppc,
> and will probably get better user testing there. Unless you feel that we
> have a bit of ppc testers using tip.
no, that's fine - just wanted to make sure it goes upstream via some method.
Ingo
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] ftrace, powerpc64: fix math to calculate offset in TOC
2009-02-09 9:40 ` Ingo Molnar
@ 2009-02-09 22:21 ` Benjamin Herrenschmidt
-1 siblings, 0 replies; 14+ messages in thread
From: Benjamin Herrenschmidt @ 2009-02-09 22:21 UTC (permalink / raw)
To: Ingo Molnar
Cc: Arnd Bergmann, LKML, Steven Rostedt, linuxppc-dev, Paul Mackerras,
Remis Lima Baima
On Mon, 2009-02-09 at 10:40 +0100, Ingo Molnar wrote:
> * Steven Rostedt <rostedt@goodmis.org> 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?
Yup, I was planning to send it to Linus along with a handful of other
powerpc fixes today, unless you prefer taking it yourself.
Cheers,
Ben.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] ftrace, powerpc64: fix math to calculate offset in TOC
@ 2009-02-09 22:21 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 14+ messages in thread
From: Benjamin Herrenschmidt @ 2009-02-09 22:21 UTC (permalink / raw)
To: Ingo Molnar
Cc: Steven Rostedt, LKML, linuxppc-dev, Paul Mackerras, Arnd Bergmann,
Geoff Levand, Remis Lima Baima
On Mon, 2009-02-09 at 10:40 +0100, Ingo Molnar wrote:
> * Steven Rostedt <rostedt@goodmis.org> 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?
Yup, I was planning to send it to Linus along with a handful of other
powerpc fixes today, unless you prefer taking it yourself.
Cheers,
Ben.
^ permalink raw reply [flat|nested] 14+ messages in thread