Re: [patch 0/4] make pr_debug() dynamic

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jason Baron
Date: Monday, February 11, 2008 - 9:38 am

On Sat, Feb 09, 2008 at 11:21:58PM +0100, Jan Engelhardt wrote:

true, we could turn pr_debug() calls into printk(KERN_DEBUG) calls, but there
is an overhead to all these extra printk functions calls. The way I have
implemented pr_debug(), there is no function call at all, in the off case.
To me pr_debug() is currently a compile option, b/c there is often a lot of
overhead to having it on. Being able to turn pr_debug() calls off/on in a
production environment, to get debugging data seems very valuable.

thanks,

-Jason
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 0/4] make pr_debug() dynamic, Jason Baron, (Thu Feb 7, 2:03 pm)
Re: [patch 0/4] make pr_debug() dynamic, Joe Perches, (Thu Feb 7, 3:42 pm)
Re: [patch 0/4] make pr_debug() dynamic, Jason Baron, (Fri Feb 8, 8:52 am)
Re: [patch 0/4] make pr_debug() dynamic, Jan Engelhardt, (Sat Feb 9, 3:21 pm)
Re: [patch 0/4] make pr_debug() dynamic, Jason Baron, (Mon Feb 11, 9:38 am)