[lkml]   [2008]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 0/5] ftrace: to kill a daemon
On Fri, Aug 08, 2008 at 10:03:42PM -0400, Steven Rostedt wrote:
> On Sat, 9 Aug 2008, Andi Kleen wrote:
> > > Funny, CONFIG_FTRACE happens to select that. Now the question is, would
> > > mcount work without it?
> >
> > Not without fixing gcc first. It would work if gcc always called
> > mcount the first thing before setting up the stack frame. Not
> > sure why it doesn't do that.
> I could take out the frame pointer option and pass in zero for the parent
> in such that case. But the parent is quite useful. But if it helps
> with performance, it may be worth doing this.

Right now gcc errors out unfortunately. Would need to ask gcc developers
to fix this first. But when they move mcount to be always first
you can still get at the parent, it will always be at 4(%esp) or 8(%rsp).

An alternative would be also run an assembler post processor that
inserts mcount calls without compiler help.


 \ /
  Last update: 2008-08-09 04:25    [W:0.111 / U:9.740 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site