summaryrefslogtreecommitdiffstats
path: root/lib/dynamic_debug.c
diff options
context:
space:
mode:
authorJim Cromie2011-12-19 23:12:24 +0100
committerGreg Kroah-Hartman2012-01-24 21:46:45 +0100
commit74df138d508eb35e8b929e165e5403cfbb46a0c5 (patch)
tree6d1951d2c53e39be5b0e0ebe4edcecc785634a52 /lib/dynamic_debug.c
parentdynamic_debug: make dynamic-debug supersede DEBUG ccflag (diff)
downloadkernel-qcow2-linux-74df138d508eb35e8b929e165e5403cfbb46a0c5.tar.gz
kernel-qcow2-linux-74df138d508eb35e8b929e165e5403cfbb46a0c5.tar.xz
kernel-qcow2-linux-74df138d508eb35e8b929e165e5403cfbb46a0c5.zip
dynamic_debug: change verbosity at runtime
Allow changing dynamic_debug verbosity at run-time, to ease debugging of ddebug queries as you add them, improving usability. at boot time: dynamic_debug.verbose=1 at runtime: root@voyage:~# echo 1 > /sys/module/dynamic_debug/parameters/verbose Signed-off-by: Jim Cromie <jim.cromie@gmail.com> Signed-off-by: Jason Baron <jbaron@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib/dynamic_debug.c')
-rw-r--r--lib/dynamic_debug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c
index 416c0794ddd3..8c88b892ebb8 100644
--- a/lib/dynamic_debug.c
+++ b/lib/dynamic_debug.c
@@ -60,6 +60,7 @@ struct ddebug_iter {
static DEFINE_MUTEX(ddebug_lock);
static LIST_HEAD(ddebug_tables);
static int verbose = 0;
+module_param(verbose, int, 0644);
/* Return the last part of a pathname */
static inline const char *basename(const char *path)