Subversion Repositories HelenOS-historic

Rev

Rev 1196 | Rev 1288 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1196 Rev 1224
Line 787... Line 787...
787
    link_t *cur;
787
    link_t *cur;
788
    ipl_t ipl;
788
    ipl_t ipl;
789
   
789
   
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\t  Osize\t  Pages\t Obj/pg\t  Slabs\t Cached\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%zd\t%zd\t%zd\t%zd\t%zd\t%zd\t\t%s\n", cache->name, cache->size,
795
        printf("%s\t%7zd\t%7zd\t%7zd\t%7zd\t%7zd\t%7zd\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");