From b64c73ca13beef304e86753b78f8079faa885989 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Tue, 29 Sep 2015 13:20:52 +0200 Subject: 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. --- ddb/db_command.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ddb/db_command.c') 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 #include #include +#include #include /* 4proto */ #include /* 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, } }; -- cgit v1.2.3