Changeset 88dea9d in mainline for kernel/generic/src/syscall/syscall.c


Ignore:
Timestamp:
2010-04-17T16:28:49Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
30a5470
Parents:
5ba201d (diff), 95319bd (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge from measuring branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/syscall/syscall.c

    r5ba201d r88dea9d  
    5454#include <console/console.h>
    5555#include <udebug/udebug.h>
     56#include <ps/ps.h>
     57#include <ps/load.h>
     58#include <ps/uptime.h>
    5659
    5760/** Dispatch system call */
     
    6063{
    6164        unative_t rc;
     65
     66        /* Do userpace accounting */
     67        thread_update_accounting(true);
    6268
    6369#ifdef CONFIG_UDEBUG
     
    95101        }
    96102#endif
     103
     104        /* Do kernel accounting */
     105        thread_update_accounting(false);
    97106       
    98107        return rc;
     
    161170        (syshandler_t) sys_debug_enable_console,
    162171        (syshandler_t) sys_debug_disable_console,
     172
     173        /* Ps calls */
     174        (syshandler_t) sys_ps_get_cpu_info,
     175        (syshandler_t) sys_ps_get_mem_info,
     176        (syshandler_t) sys_ps_get_tasks,
     177        (syshandler_t) sys_ps_get_task_info,
     178        (syshandler_t) sys_ps_get_threads,
     179        (syshandler_t) sys_ps_get_uptime,
     180        (syshandler_t) sys_ps_get_load,
    163181       
    164182        (syshandler_t) sys_ipc_connect_kbox
Note: See TracChangeset for help on using the changeset viewer.