public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Jason Baron <jbaron@redhat.com>
Cc: linux-kernel@vger.kernel.org, gnb@sgi.com, gregkh@suse.de,
	nfsv4@linux-nfs.org, systemtap@sources.redhat.com
Subject: Re: [Patch 0/2] dynamic debug
Date: Thu, 5 Feb 2009 09:58:49 -0800	[thread overview]
Message-ID: <20090205175849.GA936@kroah.com> (raw)
In-Reply-To: <20090205164520.GB3114@redhat.com>

On Thu, Feb 05, 2009 at 11:45:20AM -0500, Jason Baron wrote:
> hi,
> 
> This patchset combines Greg Bank's dprintk() patchset with the dynamic printk
> patchset. We are renaming the combined solution 'dynamic debug'. As a reminder,
> the patchset allows debug printk style statements to be dynamically 
> enabled/disabled at runtime.
> 
> The key new feature of this patchset is a richer /debugfs control file
> interface, (an example output from my system is at the bottom), which allows
> fined grained control over the the debug output. The output can be controlled by
> function, file and line number, module, and format string. 

That's nice, but do we really need to have that kind of control?  It
seems like overkill.

> For example, to enable all debug statement in module 'nf_conntrack':
> 
> #echo -n 'module nf_conntrack +p' > /mnt/debugfs/dynamic_debug/control
> 
> A further explanation can be found in the documentation patch.
> 
> While adding these new features we have dropped a couple that we intend to add
> back in subsequent patches. The ability to turn on/off all debugging at once,
> either via the /debugfs control file, or via the kernel command line.
> 
> thanks,
> 
> -Jason and Greg
> 
> 
> # filename:lineno [module]function flags format
> arch/x86/kernel/setup_percpu.c:260 [setup_percpu]numa_set_node - "Setting\040node\040for\040non-present\040cpu\040%d\012"

Why the \040 syntax?  Can't we handle a space in a string?  Makes it
very hard to grep for things...

I'll give these a spin in my tree to see how it works for now.

thanks,

greg k-h

  reply	other threads:[~2009-02-05 18:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-05 16:45 [Patch 0/2] dynamic debug Jason Baron
2009-02-05 17:58 ` Greg KH [this message]
2009-02-05 18:43   ` Jason Baron
2009-02-06  1:13     ` Greg KH
2009-02-06  1:54     ` Greg Banks
2009-02-06 16:28       ` Jason Baron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090205175849.GA936@kroah.com \
    --to=greg@kroah.com \
    --cc=gnb@sgi.com \
    --cc=gregkh@suse.de \
    --cc=jbaron@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nfsv4@linux-nfs.org \
    --cc=systemtap@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox