Rev 2632 | Rev 2745 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2632 | Rev 2712 | ||
---|---|---|---|
Line 418... | Line 418... | ||
418 | spinlock_lock(&t->lock); |
418 | spinlock_lock(&t->lock); |
419 | 419 | ||
420 | uint64_t cycles; |
420 | uint64_t cycles; |
421 | char suffix; |
421 | char suffix; |
422 | order(task_get_accounting(t), &cycles, &suffix); |
422 | order(task_get_accounting(t), &cycles, &suffix); |
423 | 423 | ||
- | 424 | if (sizeof(void *) == 4) |
|
424 | printf("%-6llu %-10s %-3ld %#10zx %#10zx %9llu%c %7zd %6zd", |
425 | printf("%-6llu %-10s %-3ld %#10zx %#10zx %9llu%c %7zd %6zd", |
- | 426 | t->taskid, t->name, t->context, t, t->as, cycles, suffix, |
|
- | 427 | t->refcount, atomic_get(&t->active_calls)); |
|
- | 428 | else |
|
- | 429 | printf("%-6llu %-10s %-3ld %#18zx %#18zx %9llu%c %7zd %6zd", |
|
425 | t->taskid, t->name, t->context, t, t->as, cycles, suffix, |
430 | t->taskid, t->name, t->context, t, t->as, cycles, suffix, |
426 | t->refcount, atomic_get(&t->active_calls)); |
431 | t->refcount, atomic_get(&t->active_calls)); |
427 | for (j = 0; j < IPC_MAX_PHONES; j++) { |
432 | for (j = 0; j < IPC_MAX_PHONES; j++) { |
428 | if (t->phones[j].callee) |
433 | if (t->phones[j].callee) |
429 | printf(" %zd:%#zx", j, t->phones[j].callee); |
434 | printf(" %zd:%#zx", j, t->phones[j].callee); |
430 | } |
435 | } |
431 | printf("\n"); |
436 | printf("\n"); |
Line 441... | Line 446... | ||
441 | 446 | ||
442 | /* Messing with task structures, avoid deadlock */ |
447 | /* Messing with task structures, avoid deadlock */ |
443 | ipl = interrupts_disable(); |
448 | ipl = interrupts_disable(); |
444 | spinlock_lock(&tasks_lock); |
449 | spinlock_lock(&tasks_lock); |
445 | 450 | ||
- | 451 | if (sizeof(void *) == 4) { |
|
- | 452 | printf("taskid name ctx address as " |
|
- | 453 | "cycles threads calls callee\n"); |
|
- | 454 | printf("------ ---------- --- ---------- ---------- " |
|
- | 455 | "---------- ------- ------ ------>\n"); |
|
- | 456 | } else { |
|
446 | printf("taskid name ctx address as cycles threads " |
457 | printf("taskid name ctx address as " |
447 | "calls callee\n"); |
458 | "cycles threads calls callee\n"); |
448 | printf("------ ---------- --- ---------- ---------- ---------- ------- " |
459 | printf("------ ---------- --- ------------------ ------------------ " |
449 | "------ ------>\n"); |
460 | "---------- ------- ------ ------>\n"); |
- | 461 | } |
|
450 | 462 | ||
451 | avltree_walk(&tasks_tree, task_print_walker, NULL); |
463 | avltree_walk(&tasks_tree, task_print_walker, NULL); |
452 | 464 | ||
453 | spinlock_unlock(&tasks_lock); |
465 | spinlock_unlock(&tasks_lock); |
454 | interrupts_restore(ipl); |
466 | interrupts_restore(ipl); |