Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2034 → Rev 2035

/trunk/kernel/generic/src/proc/task.c
343,6 → 343,9
/* Messing with thread structures, avoid deadlock */
ipl = interrupts_disable();
spinlock_lock(&tasks_lock);
printf("taskid name ctx address as active calls callee\n");
printf("------ ---------- --- ---------- ---------- ------------ ------>\n");
 
for (cur = tasks_btree.leaf_head.next; cur != &tasks_btree.leaf_head; cur = cur->next) {
btree_node_t *node;
356,11 → 359,10
t = (task_t *) node->value[i];
spinlock_lock(&t->lock);
printf("%s(%lld): context=%ld, address=%#zx, as=%#zx, ActiveCalls: %zd",
t->name, t->taskid, t->context, t, t->as, atomic_get(&t->active_calls));
for (j=0; j < IPC_MAX_PHONES; j++) {
printf("%-6lld %-10s %-3ld %#10zx %#10zx %12zd", t->taskid, t->name, t->context, t, t->as, atomic_get(&t->active_calls));
for (j = 0; j < IPC_MAX_PHONES; j++) {
if (t->phones[j].callee)
printf(" Ph(%zd): %#zx ", j, t->phones[j].callee);
printf(" %zd:%#zx", j, t->phones[j].callee);
}
printf("\n");
spinlock_unlock(&t->lock);
/trunk/kernel/generic/src/mm/frame.c
1098,12 → 1098,12
 
ipl = interrupts_disable();
spinlock_lock(&zones.lock);
printf("# Base address\tFree Frames\tBusy Frames\n");
printf(" ------------\t-----------\t-----------\n");
printf("# base address free frames busy frames\n");
printf("-- ------------ ------------ ------------\n");
for (i = 0; i < zones.count; i++) {
zone = zones.info[i];
spinlock_lock(&zone->lock);
printf("%d: %.*p \t%10zd\t%10zd\n", i, sizeof(uintptr_t) * 2, PFN2ADDR(zone->base), zone->free_count, zone->busy_count);
printf("%-2d %12p %12zd %12zd\n", i, PFN2ADDR(zone->base), zone->free_count, zone->busy_count);
spinlock_unlock(&zone->lock);
}
spinlock_unlock(&zones.lock);