Rev 2042 | Rev 2067 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2042 | Rev 2050 | ||
---|---|---|---|
Line 567... | Line 567... | ||
567 | 567 | ||
568 | t = (thread_t *) node->value[i]; |
568 | t = (thread_t *) node->value[i]; |
569 | 569 | ||
570 | uint64_t cycles; |
570 | uint64_t cycles; |
571 | char suffix; |
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; |
572 | order(t->cycles, &cycles, &suffix); |
581 | suffix = 'M'; |
- | |
582 | } else { |
- | |
583 | cycles = t->cycles; |
- | |
584 | suffix = ' '; |
- | |
585 | } |
- | |
586 | 573 | ||
587 | 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); |
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); |
588 | 575 | ||
589 | if (t->cpu) |
576 | if (t->cpu) |
590 | printf("%-4zd", t->cpu->id); |
577 | printf("%-4zd", t->cpu->id); |