Changeset 43b1e86 in mainline for kernel/generic/src/proc/thread.c
- Timestamp:
- 2008-02-01T14:11:18Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9652bd59
- Parents:
- acfdcb0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/thread.c
racfdcb0 r43b1e86 587 587 char suffix; 588 588 order(t->cycles, &cycles, &suffix); 589 590 printf("%-6llu %-10s %#10zx %-8s %#10zx %-3ld %#10zx %#10zx %9llu%c ", 591 t->tid, t->name, t, thread_states[t->state], t->task, 592 t->task->context, t->thread_code, t->kstack, cycles, suffix); 589 590 if (sizeof(void *) == 4) 591 printf("%-6llu %-10s %#10zx %-8s %#10zx %-3ld %#10zx %#10zx %9llu%c ", 592 t->tid, t->name, t, thread_states[t->state], t->task, 593 t->task->context, t->thread_code, t->kstack, cycles, suffix); 594 else 595 printf("%-6llu %-10s %#18zx %-8s %#18zx %-3ld %#18zx %#18zx %9llu%c ", 596 t->tid, t->name, t, thread_states[t->state], t->task, 597 t->task->context, t->thread_code, t->kstack, cycles, suffix); 593 598 594 599 if (t->cpu) … … 597 602 printf("none"); 598 603 599 if (t->state == Sleeping) 600 printf(" %#10zx", t->sleep_queue); 604 if (t->state == Sleeping) { 605 if (sizeof(uintptr_t) == 4) 606 printf(" %#10zx", t->sleep_queue); 607 else 608 printf(" %#18zx", t->sleep_queue); 609 } 601 610 602 611 printf("\n"); … … 614 623 spinlock_lock(&threads_lock); 615 624 616 printf("tid name address state task ctx code " 617 " stack cycles cpu waitqueue\n"); 618 printf("------ ---------- ---------- -------- ---------- --- --------" 619 "-- ---------- ---------- ---- ---------\n"); 625 if (sizeof(uintptr_t) == 4) { 626 printf("tid name address state task " 627 "ctx code stack cycles cpu " 628 "waitqueue\n"); 629 printf("------ ---------- ---------- -------- ---------- " 630 "--- ---------- ---------- ---------- ---- " 631 "----------\n"); 632 } else { 633 printf("tid name address state task " 634 "ctx code stack cycles cpu " 635 "waitqueue\n"); 636 printf("------ ---------- ------------------ -------- ------------------ " 637 "--- ------------------ ------------------ ---------- ---- " 638 "------------------\n"); 639 } 620 640 621 641 avltree_walk(&threads_tree, thread_walker, NULL);
Note:
See TracChangeset
for help on using the changeset viewer.