Rev 1950 | Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1950 | Rev 2052 | ||
|---|---|---|---|
| Line 794... | Line 794... | ||
| 794 | link_t *cur; |
794 | link_t *cur; |
| 795 | ipl_t ipl; |
795 | ipl_t ipl; |
| 796 | 796 | ||
| 797 | ipl = interrupts_disable(); |
797 | ipl = interrupts_disable(); |
| 798 | spinlock_lock(&slab_cache_lock); |
798 | spinlock_lock(&slab_cache_lock); |
| 799 | printf("slab name\t Osize\t Pages\t Obj/pg\t Slabs\t Cached\tAllocobjs\tCtl\n"); |
799 | printf("slab name size pages obj/pg slabs cached allocated ctl\n"); |
| - | 800 | printf("---------------- -------- ------ ------ ------ ------ --------- ---\n"); |
|
| - | 801 | ||
| 800 | for (cur = slab_cache_list.next;cur!=&slab_cache_list; cur=cur->next) { |
802 | for (cur = slab_cache_list.next; cur != &slab_cache_list; cur = cur->next) { |
| 801 | cache = list_get_instance(cur, slab_cache_t, link); |
803 | cache = list_get_instance(cur, slab_cache_t, link); |
| - | 804 | ||
| 802 | printf("%s\t%7zd\t%7zd\t%7zd\t%7zd\t%7zd\t%7zd\t\t%s\n", cache->name, cache->size, |
805 | printf("%-16s %8zd %6zd %6zd %6zd %6zd %9zd %-3s\n", cache->name, cache->size, (1 << cache->order), cache->objects, atomic_get(&cache->allocated_slabs), atomic_get(&cache->cached_objs), atomic_get(&cache->allocated_objs), cache->flags & SLAB_CACHE_SLINSIDE ? "in" : "out"); |
| 803 | (1 << cache->order), cache->objects, |
- | |
| 804 | atomic_get(&cache->allocated_slabs), |
- | |
| 805 | atomic_get(&cache->cached_objs), |
- | |
| 806 | atomic_get(&cache->allocated_objs), |
- | |
| 807 | cache->flags & SLAB_CACHE_SLINSIDE ? "In" : "Out"); |
- | |
| 808 | } |
806 | } |
| 809 | spinlock_unlock(&slab_cache_lock); |
807 | spinlock_unlock(&slab_cache_lock); |
| 810 | interrupts_restore(ipl); |
808 | interrupts_restore(ipl); |
| 811 | } |
809 | } |
| 812 | 810 | ||