summaryrefslogtreecommitdiff
path: root/kern/slab.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2013-01-08 00:05:48 +0100
committerRichard Braun <rbraun@sceen.net>2013-01-08 00:05:48 +0100
commitdd961d1cef715b4c1e4fedd2f43fae6703f128ba (patch)
tree0aa1828e8ff98d366657cdd919b128b30e7063eb /kern/slab.h
parent392239d8c9979ac95c122b77d5d1e012f216d2ec (diff)
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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/kern/slab.h b/kern/slab.h
index 6abe2dc..47bef21 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 */