login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
1
Re: [patch 1/3] dynamic printk - core infrastructure
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
<mws@...>
To: Jason Baron <jbaron@...>
Cc: <linux-kernel@...>
Subject:
Re: [patch 1/3] dynamic printk - core infrastructure
Date: Tuesday, April 1, 2008 - 4:09 pm
hi, Jason Baron schrieb:
quoted text
> Add the ability to dynamically enable/disable pr_debug()/dev_dbg() in the > kernel. Yes, these calls could be converted to printk(KERN_DEBUG), but there > are enough to cause overhead. Additionally, the logs become difficult to read. > Here, one can turn on and off these messages per .c source file via: > > echo "add file.c" > /sys/kernel/debug/dynamic_printk/files > echo "remove file.c" > /sys/kernel/debug/dynamic_printk/files > > There is also a special 'all' value that turns on all the debugging messages. > > Signed-off-by: Jason Baron <jbaron@redhat.com> > --- >
--snip --
quoted text
> diff --git a/include/linux/device.h b/include/linux/device.h > index db375be..b007f61 100644 > --- a/include/linux/device.h > +++ b/include/linux/device.h > @@ -587,6 +587,17 @@ extern const char *dev_driver_string(struct device *dev); > #define dev_info(dev, format, arg...) \ > dev_printk(KERN_INFO , dev , format , ## arg) > > +#ifdef CONFIG_DYNAMIC_PRINTK > +extern void dyanmic_printk(char *, char *, ...);
this external should be dynamic_printk (typo), shouldn't it? regards marcel --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[patch 1/3] dynamic printk - core infrastructure
, Jason Baron
, (Tue Apr 1, 3:49 pm)
Re: [patch 1/3] dynamic printk - core infrastructure
, Randy Dunlap
, (Tue Apr 1, 5:47 pm)
Re: [patch 1/3] dynamic printk - core infrastructure
, Joe Perches
, (Tue Apr 1, 10:07 pm)
Re: [patch 1/3] dynamic printk - core infrastructure
, Jason Baron
, (Wed Apr 2, 2:21 pm)
Re: [patch 1/3] dynamic printk - core infrastructure
, Joe Perches
, (Wed Apr 2, 2:58 pm)
Re: [patch 1/3] dynamic printk - core infrastructure
, Jason Baron
, (Fri Apr 4, 2:13 pm)
Re: [patch 1/3] dynamic printk - core infrastructure
, Joe Perches
, (Fri Apr 4, 2:33 pm)
Re: [patch 1/3] dynamic printk - core infrastructure
,
, (Tue Apr 1, 4:09 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Amit K. Arora
[RFC] Heads up on sys_fallocate()
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Linus Torvalds
Linux 2.6.25-rc4
Greg KH
Linux 2.6.25.10
git
:
linux-netdev
:
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
Ilpo Järvinen
Re: Strange Application bug, race in MSG_PEEK complaints (was: Bug#513695: fetchma...
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
569 guests
online.
Online users
strcmp
avantiwineref
Syndicate