lkml.org 
[lkml]   [2008]   [Jul]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/7] dynamic debug v2 - infrastructure
On Fri, Jul 18, 2008 at 12:56:11AM +0200, Dominik Brodowski wrote:
> Hi,
>
> On Thu, Jul 17, 2008 at 03:32:22PM -0700, Greg KH wrote:
> > > that is correct. any callers of dev_dbg() don't have to do anything. its really
> > > only the more complex debugging, where there are flags or levels that need to
> > > make adjustments to work with the new infrastructure.
> >
> > For this reason alone, I see no reason why your patch should not be
> > merged today. You don't need the other subsystems at this point in time
> > in my opinion, it's benifit is huge already.
>
> not to object to this statement, but:
>
> what about the user-visible interface? currently, it's based around one big
> debugfs file. What about doing
>
> <debugfs>/dynamic_printk/<module_name>/{enabled[,level][,flag][,modules]}

By virtue of this being in debugfs, we can change the user interface
around as time goes on if we want to with no ill side affects. :)

> instead, or even
>
> <sysfs>/module/<module_name>/debug/{enabled[,level][,flag]}

I like this as that is what a number of current modules do (usb-serial
drivers), but you have to be careful about the module parameter
namespace to not get collisions here with existing "debug" files.

So for now, I recommend staying in debugfs, it makes more sense.

thanks,

greg k-h


\
 
 \ /
  Last update: 2008-07-18 01:43    [W:1.777 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site