Ignore:
Timestamp:
Nov 19, 2020, 11:45:52 PM (4 years ago)
Author:
alain
Message:

1) Introduce up to 4 command lines arguments in the KSH "load" command.
These arguments are transfered to the user process through the
argc/argv mechanism, using the user space "args" vseg.

2) Introduce the named and anonymous "pipes", for inter-process communication
through the pipe() and mkfifo() syscalls.

3) Introduce the "chat" application to validate the two above mechanisms.

4) Improve printk() and assert() fonctions in printk.c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/syscalls/sys_trace.c

    r637 r670  
    3838
    3939    thread_t  * this    = CURRENT_THREAD;
    40     process_t * process = this->process;
    4140
    42 #if (DEBUG_SYS_TRACE || CONFIG_INSTRUMENTATION_SYSCALLS)
    43 uint64_t     tm_start = hal_get_cycles();
     41#if DEBUG_SYS_TRACE || DEBUG_SYSCALLS_ERROR || CONFIG_INSTRUMENTATION_SYSCALLS
     42process_t * process  = this->process;
     43uint64_t    tm_start = hal_get_cycles();
    4444#endif
    4545
     
    5555
    5656#if DEBUG_SYSCALLS_ERROR
    57 printk("\n[ERROR] in %s : illegal cxy argument %x / thread %x / process %x\n",
    58 __FUNCTION__ , cxy , this->trdid , process->pid );
     57if( DEBUG_SYSCALLS_ERROR < (uint32_t)tm_start )
     58printk("\n[ERROR] in %s : thread[%x,%x] / illegal cxy argument %x\n",
     59__FUNCTION__ , this->trdid , process->pid , cxy );
    5960#endif
    6061        this->errno = EINVAL;
     
    6869
    6970#if DEBUG_SYSCALLS_ERROR
    70 printk("\n[ERROR] in %s : illegal lid argument %x / thread %x / process %x\n",
    71 __FUNCTION__ , lid , this->trdid , process->pid );
     71if( DEBUG_SYSCALLS_ERROR < (uint32_t)tm_start )
     72printk("\n[ERROR] in %s : thread[%x,%x] / illegal lid argument %x\n",
     73__FUNCTION__ , this->trdid , process->pid , lid );
    7274#endif
    7375        this->errno = EINVAL;
     
    100102hal_atomic_add( &syscalls_occurences[SYS_TRACE] , 1 );
    101103#endif
     104
    102105    return 0;
    103106
Note: See TracChangeset for help on using the changeset viewer.