Changeset 95155b0c in mainline for kernel/generic/src/proc/thread.c
- Timestamp:
- 2006-12-19T10:12:24Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c8410ec9
- Parents:
- 7e7c8747
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/thread.c
r7e7c8747 r95155b0c 570 570 uint64_t cycles; 571 571 char suffix; 572 573 if (t->cycles > 1000000000000000000LL) { 574 cycles = t->cycles / 1000000000000000000LL; 575 suffix = 'E'; 576 } else if (t->cycles > 1000000000000LL) { 577 cycles = t->cycles / 1000000000000LL; 578 suffix = 'T'; 579 } else if (t->cycles > 1000000LL) { 580 cycles = t->cycles / 1000000LL; 581 suffix = 'M'; 582 } else { 583 cycles = t->cycles; 584 suffix = ' '; 585 } 572 order(t->cycles, &cycles, &suffix); 586 573 587 574 printf("%-6zd %-10s %#10zx %-8s %#10zx %-3ld %#10zx %#10zx %9llu%c ", t->tid, t->name, t, thread_states[t->state], t->task, t->task->context, t->thread_code, t->kstack, cycles, suffix);
Note:
See TracChangeset
for help on using the changeset viewer.