summaryrefslogtreecommitdiff
path: root/ddb
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-09-29 13:20:52 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-09-29 13:20:52 +0200
commitb64c73ca13beef304e86753b78f8079faa885989 (patch)
treea239c36cbf131a72af6494a868771db520d54d59 /ddb
parent5e8955c2ad4b51acc96fdb671c4fef924dbc7f82 (diff)
ddb: add new command `show slabinfo'
* ddb/db_command.c (db_show_cmds): Add `slabinfo'. * kern/slab.c (slab_info): Generalize so that it can be used with different printf-like functions, and turn it into a static function. (slab_info): New wrapper retaining the old behaviour. (db_show_slab_info): New wrapper that uses `db_printf' instead. * kern/slab.h (db_show_slab_info): New declaration.
Diffstat (limited to 'ddb')
-rw-r--r--ddb/db_command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ddb/db_command.c b/ddb/db_command.c
index 56516672..721f04fe 100644
--- a/ddb/db_command.c
+++ b/ddb/db_command.c
@@ -57,6 +57,7 @@
#include <machine/db_interface.h>
#include <kern/debug.h>
#include <kern/thread.h>
+#include <kern/slab.h>
#include <ipc/ipc_pset.h> /* 4proto */
#include <ipc/ipc_port.h> /* 4proto */
@@ -327,6 +328,7 @@ struct db_command db_show_cmds[] = {
{ "kmsg", ipc_kmsg_print, 0, 0 },
{ "msg", ipc_msg_print, 0, 0 },
{ "ipc_port", db_show_port_id, 0, 0 },
+ { "slabinfo", db_show_slab_info, 0, 0 },
{ (char *)0, }
};