From dd961d1cef715b4c1e4fedd2f43fae6703f128ba Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Tue, 8 Jan 2013 00:05:48 +0100 Subject: 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. --- kern/slab.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'kern/slab.h') 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 */ -- cgit v1.2.3