X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=Documentation%2FDocBook%2Fkgdb.tmpl;h=d71b57fcf116bcb263b8a761d2ebf87b3231f56a;hp=490d862c5f0ddffc748ebb56de4255ef0769c115;hb=82279e6bd7643da1b3fbda42555c3238c7b00d38;hpb=682c30ed2165d5694a414d31eac7c63ac5700fb0
diff --git a/Documentation/DocBook/kgdb.tmpl b/Documentation/DocBook/kgdb.tmpl
index 490d862c5f0d..d71b57fcf116 100644
--- a/Documentation/DocBook/kgdb.tmpl
+++ b/Documentation/DocBook/kgdb.tmpl
@@ -710,7 +710,18 @@ Task Addr Pid Parent [*] cpu State Thread Command
A simple shell
The kdb core command set
A registration API to register additional kdb shell commands.
- A good example of a self-contained kdb module is the "ftdump" command for dumping the ftrace buffer. See: kernel/trace/trace_kdb.c
+
+ A good example of a self-contained kdb module
+ is the "ftdump" command for dumping the ftrace buffer. See:
+ kernel/trace/trace_kdb.c
+ For an example of how to dynamically register
+ a new kdb command you can build the kdb_hello.ko kernel module
+ from samples/kdb/kdb_hello.c. To build this example you can
+ set CONFIG_SAMPLES=y and CONFIG_SAMPLE_KDB=m in your kernel
+ config. Later run "modprobe kdb_hello" and the next time you
+ enter the kdb shell, you can run the "hello"
+ command.
+
The implementation for kdb_printf() which
emits messages directly to I/O drivers, bypassing the kernel
log.