Ignore:
Timestamp:
Nov 1, 2018, 12:13:45 PM (6 years ago)
Author:
alain
Message:

Introduce sys_place_fork() function.

File:
1 edited

Legend:

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

    r566 r584  
    7373#if DEBUG_SYS_FORK
    7474if( DEBUG_SYS_FORK < tm_start )
    75 printk("\n[DBG] %s : thread %x in process %x enter / cycle =  %d\n",
    76 __FUNCTION__, parent_thread_ptr->trdid, parent_pid, (uint32_t)tm_start );
     75printk("\n[DBG] %s : thread[%x,%x] enter / cycle =  %d\n",
     76__FUNCTION__, parent_pid, parent_thread_ptr->trdid, (uint32_t)tm_start );
    7777#endif
    7878
     
    8888
    8989#if DEBUG_SYSCALLS_ERROR
    90 printk("\n[ERROR] in %s : thread %x in process %x cannot fork : too much children\n",
    91 __FUNCTION__, parent_thread_ptr->trdid, parent_pid );
     90printk("\n[ERROR] in %s : thread[%x,%x] cannot fork : too much children\n",
     91__FUNCTION__, parent_pid, parent_thread_ptr->trdid );
    9292#endif
    9393            hal_remote_atomic_add ( children_xp , -1 );
     
    110110#if (DEBUG_SYS_FORK & 1 )
    111111if( DEBUG_SYS_FORK < tm_start )
    112 printk("\n[DBG] %s : thread %x in process %x selected cluster %x\n",
    113 __FUNCTION__, parent_thread_ptr->trdid, parent_pid, child_cxy );
     112printk("\n[DBG] %s : thread[%x,%x] selected cluster %x\n",
     113__FUNCTION__, parent_pid, parent_thread_ptr->trdid, child_cxy );
    114114#endif
    115115
     
    136136
    137137#if DEBUG_SYSCALLS_ERROR
    138 printk("\n[ERROR] in %s : thread %x in process %x cannot fork to cluster %x\n",
    139 __FUNCTION__, parent_thread_ptr->trdid, parent_pid, local_cxy );
     138printk("\n[ERROR] in %s : thread[%x,%x] cannot fork\n",
     139__FUNCTION__, parent_pid, parent_thread_ptr->trdid );
    140140#endif
    141141        parent_thread_ptr->errno = EAGAIN;
     
    167167#if DEBUG_SYS_FORK
    168168if( DEBUG_SYS_FORK < tm_end )
    169 printk("\n[DBG] %s : thread %x in process %x exit / cycle %d\n",
    170 __FUNCTION__, current->trdid, current->process->pid, (uint32_t)tm_end );
     169printk("\n[DBG] %s : thread[%x,%x] exit / cycle %d\n",
     170__FUNCTION__, current->process->pid, current->trdid, (uint32_t)tm_end );
    171171#endif
    172172
Note: See TracChangeset for help on using the changeset viewer.