[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: static functions are your friends (Was GPIO revisited)
On Aug 9, 2009, at 10:33 AM, Marc Balmer wrote:
Am 09.08.2009 um 19:32 schrieb Matt Thomas:
On Aug 9, 2009, at 10:03 AM, Marc Balmer wrote:
We can consider this issue solved. I can declare my functions as
"__noinline static ...." and have both the benefits of a static
declaration and the function name show up in ddb's 'trace' command.
I will slowly convert my code to this idiom, if no one objects.
Please only do that if neither DIAGNOSTIC nor DEBUG is defined.
why do you suggest this?
Because the kernel is supposed to fully optimized if neither of those
are present, even if it makes debugging harder.
Main Index |
Thread Index |