Changeset 9a1b20c in mainline for kernel/generic/src/syscall/syscall.c


Ignore:
Timestamp:
2008-09-17T12:16:27Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fb9b0b0
Parents:
06a195bc
Message:

Merge syscall tracer (trace) and relevant part of udebug interface from tracing to trunk.

File:
1 edited

Legend:

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

    r06a195bc r9a1b20c  
    5454#include <sysinfo/sysinfo.h>
    5555#include <console/console.h>
     56#include <udebug/udebug.h>
    5657
    5758/** Print using kernel facility
     
    102103        unative_t rc;
    103104
    104         if (id < SYSCALL_END)
     105#ifdef CONFIG_UDEBUG
     106        udebug_syscall_event(a1, a2, a3, a4, a5, a6, id, 0, false);
     107#endif
     108
     109        if (id < SYSCALL_END) {
     110#ifdef CONFIG_UDEBUG
     111                udebug_stoppable_begin();
     112#endif
    105113                rc = syscall_table[id](a1, a2, a3, a4, a5, a6);
    106         else {
     114        } else {
    107115                printf("Task %" PRIu64": Unknown syscall %#" PRIxn, TASK->taskid, id);
    108116                task_kill(TASK->taskid);
     
    112120        if (THREAD->interrupted)
    113121                thread_exit();
     122
     123#ifdef CONFIG_UDEBUG
     124        udebug_syscall_event(a1, a2, a3, a4, a5, a6, id, rc, true);
     125        udebug_stoppable_end();
     126#endif
    114127       
    115128        return rc;
     
    166179       
    167180        /* Debug calls */
    168         (syshandler_t) sys_debug_enable_console
     181        (syshandler_t) sys_debug_enable_console,
     182
     183        (syshandler_t) sys_ipc_connect_kbox
    169184};
    170185
Note: See TracChangeset for help on using the changeset viewer.