]> git.baikalelectronics.ru Git - kernel.git/commit
dynamic debug: combine dprintk and dynamic printk
authorJason Baron <jbaron@redhat.com>
Thu, 5 Feb 2009 16:51:38 +0000 (11:51 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Mar 2009 23:38:26 +0000 (16:38 -0700)
commit6daa8913bae455ae8f6c014c0127921bc2c7ae44
tree6eadef32eb421647ae98d88341b9aceb259aaf22
parent382d2da7833efda899b1a1aa87f1456450e78171
dynamic debug: combine dprintk and dynamic printk

This patch combines Greg Bank's dprintk() work with the existing dynamic
printk patchset, we are now calling it 'dynamic debug'.

The 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, module, format string, and line number.

for example, enabled all debug messages in module 'nf_conntrack':

echo -n 'module nf_conntrack +p' > /mnt/debugfs/dynamic_debug/control

to disable them:

echo -n 'module nf_conntrack -p' > /mnt/debugfs/dynamic_debug/control

A further explanation can be found in the documentation patch.

Signed-off-by: Greg Banks <gnb@sgi.com>
Signed-off-by: Jason Baron <jbaron@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 files changed:
Documentation/kernel-parameters.txt
include/asm-generic/vmlinux.lds.h
include/linux/device.h
include/linux/dynamic_debug.h [new file with mode: 0644]
include/linux/dynamic_printk.h [deleted file]
include/linux/kernel.h
kernel/module.c
lib/Kconfig.debug
lib/Makefile
lib/dynamic_debug.c [new file with mode: 0644]
lib/dynamic_printk.c [deleted file]
net/netfilter/nf_conntrack_pptp.c
scripts/Makefile.lib