diff options
author | Richard Braun <rbraun@sceen.net> | 2013-01-08 00:05:48 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2013-01-08 00:05:48 +0100 |
commit | dd961d1cef715b4c1e4fedd2f43fae6703f128ba (patch) | |
tree | 0aa1828e8ff98d366657cdd919b128b30e7063eb /kern/slab.h | |
parent | 392239d8c9979ac95c122b77d5d1e012f216d2ec (diff) | |
download | gnumach-dd961d1cef715b4c1e4fedd2f43fae6703f128ba.tar.gz gnumach-dd961d1cef715b4c1e4fedd2f43fae6703f128ba.tar.bz2 gnumach-dd961d1cef715b4c1e4fedd2f43fae6703f128ba.zip |
Add function to dump a raw summary of the slab allocator state
The purpose of this function is to allow kernel code to display the state
of the slab caches in situations where the host_slab_info RPC wouldn't be
available, e.g. before a panic.
* kern/slab.c (slab_info): New function.
* kern/slab.h: Add declaration for slab_info.
Diffstat (limited to 'kern/slab.h')
-rw-r--r-- | kern/slab.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kern/slab.h b/kern/slab.h index 6abe2dc0..47bef218 100644 --- a/kern/slab.h +++ b/kern/slab.h @@ -246,4 +246,9 @@ void slab_init(void); */ void slab_collect(void); +/* + * Display a summary of all kernel caches. + */ +void slab_info(void); + #endif /* _KERN_SLAB_H */ |