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. --- kern/slab.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'kern/slab.h') diff --git a/kern/slab.h b/kern/slab.h index c7be1692..77db7c1b 100644 --- a/kern/slab.h +++ b/kern/slab.h @@ -253,4 +253,8 @@ void slab_collect(void); */ void slab_info(void); +#if MACH_KDB +void db_show_slab_info(void); +#endif /* MACH_KDB */ + #endif /* _KERN_SLAB_H */ -- cgit v1.2.3