Changeset a2a00e8 in mainline for kernel/generic/src/console/cmd.c


Ignore:
Timestamp:
2010-03-28T23:05:18Z (15 years ago)
Author:
Stanislav Kozina <stanislav.kozina@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
07640dfd
Parents:
34bba0e
Message:

Accounting separated to kernel and user time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/console/cmd.c

    r34bba0e ra2a00e8  
    10271027        ipl_t ipl = interrupts_disable();
    10281028        spinlock_lock(&TASK->lock);
    1029         uint64_t t0 = task_get_accounting(TASK);
     1029        uint64_t ucycles, kcycles;
     1030        uint64_t t0 = task_get_accounting(TASK, &ucycles, &kcycles);
    10301031        spinlock_unlock(&TASK->lock);
    10311032        interrupts_restore(ipl);
     
    10381039        ipl = interrupts_disable();
    10391040        spinlock_lock(&TASK->lock);
    1040         uint64_t dt = task_get_accounting(TASK) - t0;
     1041        uint64_t dt = task_get_accounting(TASK, &ucycles, &kcycles) - t0;
    10411042        spinlock_unlock(&TASK->lock);
    10421043        interrupts_restore(ipl);
     
    10801081                ipl_t ipl = interrupts_disable();
    10811082                spinlock_lock(&TASK->lock);
    1082                 uint64_t t0 = task_get_accounting(TASK);
     1083                uint64_t ucycles, kcycles;
     1084                uint64_t t0 = task_get_accounting(TASK, &ucycles, &kcycles);
    10831085                spinlock_unlock(&TASK->lock);
    10841086                interrupts_restore(ipl);
     
    10911093                ipl = interrupts_disable();
    10921094                spinlock_lock(&TASK->lock);
    1093                 uint64_t dt = task_get_accounting(TASK) - t0;
     1095                uint64_t dt = task_get_accounting(TASK, &ucycles, &kcycles) - t0;
    10941096                spinlock_unlock(&TASK->lock);
    10951097                interrupts_restore(ipl);
Note: See TracChangeset for help on using the changeset viewer.