Subversion Repositories HelenOS

Rev

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

Rev 4216 Rev 4227
Line 29... Line 29...
29
/** @addtogroup genericconsole
29
/** @addtogroup genericconsole
30
 * @{
30
 * @{
31
 */
31
 */
32
 
32
 
33
/**
33
/**
34
 * @file    cmd.c
34
 * @file  cmd.c
35
 * @brief   Kernel console command wrappers.
35
 * @brief Kernel console command wrappers.
36
 *
36
 *
37
 * This file is meant to contain all wrapper functions for
37
 * This file is meant to contain all wrapper functions for
38
 * all kconsole commands. The point is in separating
38
 * all kconsole commands. The point is in separating
39
 * kconsole specific wrappers from kconsole-unaware functions
39
 * kconsole specific wrappers from kconsole-unaware functions
40
 * from other subsystems.
40
 * from other subsystems.
Line 994... Line 994...
994
    uint64_t t0 = task_get_accounting(TASK);
994
    uint64_t t0 = task_get_accounting(TASK);
995
    spinlock_unlock(&TASK->lock);
995
    spinlock_unlock(&TASK->lock);
996
    interrupts_restore(ipl);
996
    interrupts_restore(ipl);
997
   
997
   
998
    /* Execute the test */
998
    /* Execute the test */
-
 
999
    test_quiet = false;
999
    char * ret = test->entry(false);
1000
    char *ret = test->entry();
1000
   
1001
   
1001
    /* Update and read thread accounting */
1002
    /* Update and read thread accounting */
1002
    ipl = interrupts_disable();
1003
    ipl = interrupts_disable();
1003
    spinlock_lock(&TASK->lock);
1004
    spinlock_lock(&TASK->lock);
1004
    uint64_t dt = task_get_accounting(TASK) - t0;
1005
    uint64_t dt = task_get_accounting(TASK) - t0;
Line 1046... Line 1047...
1046
        uint64_t t0 = task_get_accounting(TASK);
1047
        uint64_t t0 = task_get_accounting(TASK);
1047
        spinlock_unlock(&TASK->lock);
1048
        spinlock_unlock(&TASK->lock);
1048
        interrupts_restore(ipl);
1049
        interrupts_restore(ipl);
1049
       
1050
       
1050
        /* Execute the test */
1051
        /* Execute the test */
-
 
1052
        test_quiet = true;
1051
        char * ret = test->entry(true);
1053
        char * ret = test->entry();
1052
       
1054
       
1053
        /* Update and read thread accounting */
1055
        /* Update and read thread accounting */
1054
        ipl = interrupts_disable();
1056
        ipl = interrupts_disable();
1055
        spinlock_lock(&TASK->lock);
1057
        spinlock_lock(&TASK->lock);
1056
        uint64_t dt = task_get_accounting(TASK) - t0;
1058
        uint64_t dt = task_get_accounting(TASK) - t0;
Line 1148... Line 1150...
1148
        }
1150
        }
1149
    }
1151
    }
1150
       
1152
       
1151
    if (!fnd)
1153
    if (!fnd)
1152
        printf("Unknown test\n");
1154
        printf("Unknown test\n");
1153
 
1155
   
1154
    return 1;
1156
    return 1;
1155
}
1157
}
1156
 
1158
 
1157
#endif
1159
#endif
1158
 
1160