Re: [PATCH 2/2] ftrace: support for PowerPC

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Michael Ellerman
Date: Tuesday, May 20, 2008 - 7:04 am

On Wed, 2008-05-14 at 23:49 -0400, Steven Rostedt wrote:

Hi Steven,

Just a few comments inline ..

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
:30:53.000000000 -0700
6.000000000 -0700

Why do we not want to trace early boot? Just because it's not useful?=20

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
19:30:50.000000000 -0700
:56.000000000 -0700
.. snip


#if 0, #if 1 ?

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
6.000000000 -0700

I don't grok what you're doing with CALL_BACK, you add it in places and
subtract in others - and it looks like you could do neither, but I haven't
gone over it in detail.


I should really add a #define for that.


And that.

.. snip

ng addr)

0x03fffffe should be 0x03fffffc, if you set bit 1 you'll end with a "bla" i=
nstruction,
ie. branch absolute and link. That shouldn't happen as long as ip and addr =
are
properly aligned, but still.

In fact I think you should just use create_function_call() or create_branch=
() from
include/asm-powerpc/system.h


We already have a #define for .long, it's called PPC_LONG (asm/asm-compat.h=
)

Perhaps we should add one for .align, PPC_LONG_ALIGN or something?


Or perhaps we just need a macro for adding exception table entries.


=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
19:30:50.000000000 -0700
:56.000000000 -0700

Can you please put the extern in a header, and the EXPORT_SYMBOL in arch/po=
werpc/kernel/ftrace.c?

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
19:30:50.000000000 -0700
:56.000000000 -0700

Ditto.


cheers


--=20
Michael Ellerman
OzLabs, IBM Australia Development Lab

wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2/2] ftrace: support for PowerPC, Steven Rostedt, (Wed May 14, 8:49 pm)
Re: [PATCH 2/2] ftrace: support for PowerPC, David Miller, (Wed May 14, 10:28 pm)
Re: [PATCH 2/2] ftrace: support for PowerPC, Steven Rostedt, (Thu May 15, 6:38 am)
Re: [PATCH 2/2] ftrace: support for PowerPC, Scott Wood, (Thu May 15, 9:48 am)
Re: [PATCH 2/2] ftrace: support for PowerPC, Ingo Molnar, (Fri May 16, 5:06 am)
Re: [PATCH 2/2] ftrace: support for PowerPC, Michael Ellerman, (Tue May 20, 7:04 am)
Re: [PATCH 2/2] ftrace: support for PowerPC, Benjamin Herrenschmidt, (Tue May 20, 7:17 am)
Re: [PATCH 2/2] ftrace: support for PowerPC, Steven Rostedt, (Tue May 20, 7:32 am)
Re: [PATCH 2/2] ftrace: support for PowerPC, Steven Rostedt, (Tue May 20, 7:51 am)
[PATCH] ftrace: powerpc clean ups, Steven Rostedt, (Thu May 22, 11:31 am)
Re: [PATCH] ftrace: powerpc clean ups, Thomas Gleixner, (Tue May 27, 8:36 am)
Re: [PATCH] ftrace: powerpc clean ups, Michael Ellerman, (Sun Jun 1, 7:15 pm)