Rev 1144 | Rev 1224 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1144 | Rev 1196 | ||
|---|---|---|---|
| Line 790... | Line 790... | ||
| 790 | ipl = interrupts_disable(); |
790 | ipl = interrupts_disable(); |
| 791 | spinlock_lock(&slab_cache_lock); |
791 | spinlock_lock(&slab_cache_lock); |
| 792 | printf("SLAB name\tOsize\tPages\tObj/pg\tSlabs\tCached\tAllocobjs\tCtl\n"); |
792 | printf("SLAB name\tOsize\tPages\tObj/pg\tSlabs\tCached\tAllocobjs\tCtl\n"); |
| 793 | for (cur = slab_cache_list.next;cur!=&slab_cache_list; cur=cur->next) { |
793 | for (cur = slab_cache_list.next;cur!=&slab_cache_list; cur=cur->next) { |
| 794 | cache = list_get_instance(cur, slab_cache_t, link); |
794 | cache = list_get_instance(cur, slab_cache_t, link); |
| 795 | printf("%s\t%d\t%d\t%d\t%d\t%d\t%d\t\t%s\n", cache->name, cache->size, |
795 | printf("%s\t%zd\t%zd\t%zd\t%zd\t%zd\t%zd\t\t%s\n", cache->name, cache->size, |
| 796 | (1 << cache->order), cache->objects, |
796 | (1 << cache->order), cache->objects, |
| 797 | atomic_get(&cache->allocated_slabs), |
797 | atomic_get(&cache->allocated_slabs), |
| 798 | atomic_get(&cache->cached_objs), |
798 | atomic_get(&cache->cached_objs), |
| 799 | atomic_get(&cache->allocated_objs), |
799 | atomic_get(&cache->allocated_objs), |
| 800 | cache->flags & SLAB_CACHE_SLINSIDE ? "In" : "Out"); |
800 | cache->flags & SLAB_CACHE_SLINSIDE ? "In" : "Out"); |