Re: MIPS RT debug support

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Steven Rostedt <rostedt@...>
Cc: Tim Bird <tim.bird@...>, Thomas Gleixner <tglx@...>, linux kernel <linux-kernel@...>, Ingo Molnar <mingo@...>, john cooper <john.cooper@...>
Date: Friday, November 16, 2007 - 7:56 am

Steven Rostedt wrote:

I seem to recall more use was made of __builtin_return_address(n)
for 0 < n in the past compared to the current code.  Likely for
shallow frames the 0 < n calls were potentially returning invalid
data which is why they currently appear to be commented out.

Rather than lobbying to fix __builtin_return_address(), replacing
it with a primitive which works in all cases seems an easier
solution.  That stub stack frame really does provide useful debug
information.  In the case of ARM I simply walked the stack.  Worst
case in that vintage of the code was four iterations so the overhead
was in the noise.  That same solution could easily be applied to
other architectures.


Concerning a MIPS board, if no freebies should arrive you
might want to dig up a linux footprint friendly version of
a Linksys WRT54GS.

-john

-- 
john.cooper@third-harmonic.com
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
MIPS RT debug support, Tim Bird, (Thu Nov 15, 7:31 pm)
Re: MIPS RT debug support, Steven Rostedt, (Thu Nov 15, 9:00 pm)
Re: MIPS RT debug support, john cooper, (Thu Nov 15, 9:55 pm)
Re: MIPS RT debug support, Steven Rostedt, (Thu Nov 15, 10:25 pm)
Re: MIPS RT debug support, john cooper, (Fri Nov 16, 7:56 am)