tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: static functions are your friends (Was GPIO revisited)



On Sun, Aug 09, 2009 at 03:30:12PM +0000, YAMAMOTO Takashi wrote:
> hi,
> 
> > I took the time to write a function that crahses the kernel on  
> > purpose.  Compiled as non static function, ddb showed me the function  
> > name and function call trace with proper function names.  Quite easy  
> > to locate the faulty spot.  To complete my test, I compiled the very  
> > same code with all functions declared static.  Now the ddb trace does  
> > not show me the function names, making it a lot harder to locate the  
> > faulty spot.
> 
> you want __noinline?

You also need to disable tail-call optimisation.

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index