diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-09-29 13:20:52 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-09-29 13:20:52 +0200 |
commit | b64c73ca13beef304e86753b78f8079faa885989 (patch) | |
tree | a239c36cbf131a72af6494a868771db520d54d59 /kern/slab.h | |
parent | 5e8955c2ad4b51acc96fdb671c4fef924dbc7f82 (diff) | |
download | gnumach-b64c73ca13beef304e86753b78f8079faa885989.tar.gz gnumach-b64c73ca13beef304e86753b78f8079faa885989.tar.bz2 gnumach-b64c73ca13beef304e86753b78f8079faa885989.zip |
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 'kern/slab.h')
-rw-r--r-- | kern/slab.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |