Changeset 95155b0c in mainline for kernel/generic/src/proc/task.c
- Timestamp:
- 2006-12-19T10:12:24Z (19 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/task.c
r7e7c8747 r95155b0c 53 53 #include <lib/elf.h> 54 54 #include <errno.h> 55 #include <func.h> 55 56 #include <syscall/copy.h> 56 57 #include <console/klog.h> … … 392 393 spinlock_lock(&t->lock); 393 394 394 uint64_t cycles = task_get_accounting(t);395 uint64_t cycles; 395 396 char suffix; 396 397 if (cycles > 1000000000000000000LL) { 398 cycles = cycles / 1000000000000000000LL; 399 suffix = 'E'; 400 } else if (cycles > 1000000000000LL) { 401 cycles = cycles / 1000000000000LL; 402 suffix = 'T'; 403 } else if (cycles > 1000000LL) { 404 cycles = cycles / 1000000LL; 405 suffix = 'M'; 406 } else 407 suffix = ' '; 397 order(task_get_accounting(t), &cycles, &suffix); 408 398 409 399 printf("%-6lld %-10s %-3ld %#10zx %#10zx %9llu%c %7zd %6zd", t->taskid, t->name, t->context, t, t->as, cycles, suffix, t->refcount, atomic_get(&t->active_calls));
Note:
See TracChangeset
for help on using the changeset viewer.