Rev 1981 | Rev 2048 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1981 | Rev 2035 | ||
---|---|---|---|
Line 1096... | Line 1096... | ||
1096 | int i; |
1096 | int i; |
1097 | ipl_t ipl; |
1097 | ipl_t ipl; |
1098 | 1098 | ||
1099 | ipl = interrupts_disable(); |
1099 | ipl = interrupts_disable(); |
1100 | spinlock_lock(&zones.lock); |
1100 | spinlock_lock(&zones.lock); |
1101 | printf("# Base address\tFree Frames\tBusy Frames\n"); |
1101 | printf("# base address free frames busy frames\n"); |
1102 | printf(" ------------\t-----------\t-----------\n"); |
1102 | printf("-- ------------ ------------ ------------\n"); |
1103 | for (i = 0; i < zones.count; i++) { |
1103 | for (i = 0; i < zones.count; i++) { |
1104 | zone = zones.info[i]; |
1104 | zone = zones.info[i]; |
1105 | spinlock_lock(&zone->lock); |
1105 | spinlock_lock(&zone->lock); |
1106 | printf("%d: %.*p \t%10zd\t%10zd\n", i, sizeof(uintptr_t) * 2, PFN2ADDR(zone->base), zone->free_count, zone->busy_count); |
1106 | printf("%-2d %12p %12zd %12zd\n", i, PFN2ADDR(zone->base), zone->free_count, zone->busy_count); |
1107 | spinlock_unlock(&zone->lock); |
1107 | spinlock_unlock(&zone->lock); |
1108 | } |
1108 | } |
1109 | spinlock_unlock(&zones.lock); |
1109 | spinlock_unlock(&zones.lock); |
1110 | interrupts_restore(ipl); |
1110 | interrupts_restore(ipl); |
1111 | } |
1111 | } |