[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.DEB.1.10.0902130020420.15469@gandalf.stny.rr.com>
Date: Fri, 13 Feb 2009 00:22:51 -0500 (EST)
From: Steven Rostedt <rostedt@...dmis.org>
To: Benjamin Herrenschmidt <benh@...nel.crashing.org>
cc: linux-kernel@...r.kernel.org, Ingo Molnar <mingo@...e.hu>,
Andrew Morton <akpm@...ux-foundation.org>,
Frederic Weisbecker <fweisbec@...il.com>,
linuxppc-dev@...abs.org, Paul Mackerras <paulus@...ba.org>,
Steven Rostedt <srostedt@...hat.com>
Subject: Re: [PATCH 3/7][RFC] powerpc64, tracing: add function graph tracer
with dynamic tracing
On Fri, 13 Feb 2009, Benjamin Herrenschmidt wrote:
>
> > @@ -55,8 +56,9 @@ static unsigned char *ftrace_call_replace(unsigned
> > long ip, unsigned long addr)
> > */
> > addr = GET_ADDR(addr);
> >
> > - /* Set to "bl addr" */
> > - op = 0x48000001 | (ftrace_calc_offset(ip, addr) & 0x03fffffc);
> > + /* if (link) set op to 'bl' else 'b' */
> > + op = 0x48000000 | (link ? 1 : 0);
> > + op |= (ftrace_calc_offset(ip, addr) & 0x03fffffc);
>
> Any reason why you aren't using the code in
> arch/powerpc/lib/code-patching.c here ?
Yes, because I did not know about it ;-)
I'll write up a patch to change this. But I'll post this series as is for
now.
Thanks,
-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists