--- mm/slub.c | 5 +++++ 1 file changed, 5 insertions(+) Index: linux-2.6/mm/slub.c =================================================================== --- linux-2.6.orig/mm/slub.c 2008-01-20 16:52:22.838976064 -0800 +++ linux-2.6/mm/slub.c 2008-01-20 17:10:27.554448423 -0800 @@ -1467,6 +1467,7 @@ static void *__slab_alloc(struct kmem_ca void **object; struct page *new; + printk("slab_alloc(%s)\n", s->name); if (!c->page) goto new_slab; @@ -1591,6 +1592,7 @@ static void __slab_free(struct kmem_cach void *prior; void **object = (void *)x; + printk("slab_alloc(%s)\n", s->name); slab_lock(page); if (unlikely(SlabDebug(page))) @@ -2205,6 +2207,7 @@ static int kmem_cache_open(struct kmem_c size_t align, unsigned long flags, void (*ctor)(struct kmem_cache *, void *)) { + printk("kmem_cache_open(%s)\n", name); memset(s, 0, kmem_size); s->name = name; s->ctor = ctor; @@ -2305,6 +2308,7 @@ static inline int kmem_cache_close(struc { int cpu; + printk("kmem_cache_close(%s)\n", s->name); flush_all(s); /* Attempt to free all objects */ @@ -2653,6 +2657,7 @@ int kmem_cache_shrink(struct kmem_cache if (!slabs_by_inuse) return -ENOMEM; + printk("kmem_cache_shrink(%s)\n", s->name); flush_all(s); for_each_online_cpu(cpu) { n = get_slab_list(s, cpu);