Subversion Repositories HelenOS

Rev

Rev 2048 | Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2048 Rev 2050
Line 50... Line 50...
50
#include <security/cap.h>
50
#include <security/cap.h>
51
#include <memstr.h>
51
#include <memstr.h>
52
#include <print.h>
52
#include <print.h>
53
#include <lib/elf.h>
53
#include <lib/elf.h>
54
#include <errno.h>
54
#include <errno.h>
-
 
55
#include <func.h>
55
#include <syscall/copy.h>
56
#include <syscall/copy.h>
56
#include <console/klog.h>
57
#include <console/klog.h>
57
 
58
 
58
#ifndef LOADED_PROG_STACK_PAGES_NO
59
#ifndef LOADED_PROG_STACK_PAGES_NO
59
#define LOADED_PROG_STACK_PAGES_NO 1
60
#define LOADED_PROG_STACK_PAGES_NO 1
Line 389... Line 390...
389
 
390
 
390
            t = (task_t *) node->value[i];
391
            t = (task_t *) node->value[i];
391
       
392
       
392
            spinlock_lock(&t->lock);
393
            spinlock_lock(&t->lock);
393
           
394
           
394
            uint64_t cycles = task_get_accounting(t);
395
            uint64_t cycles;
395
            char suffix;
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) {
397
            order(task_get_accounting(t), &cycles, &suffix);
404
                cycles = cycles / 1000000LL;
-
 
405
                suffix = 'M';
-
 
406
            } else
-
 
407
                suffix = ' ';
-
 
408
           
398
           
409
            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));
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));
410
            for (j = 0; j < IPC_MAX_PHONES; j++) {
400
            for (j = 0; j < IPC_MAX_PHONES; j++) {
411
                if (t->phones[j].callee)
401
                if (t->phones[j].callee)
412
                    printf(" %zd:%#zx", j, t->phones[j].callee);
402
                    printf(" %zd:%#zx", j, t->phones[j].callee);