Changeset 406 for trunk/kernel/syscalls


Ignore:
Timestamp:
Aug 29, 2017, 12:03:37 PM (5 years ago)
Author:
alain
Message:

This version executed successfully the user "init" process on a mono-processor TSAR architecture.

Location:
trunk/kernel/syscalls
Files:
6 edited

Legend:

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

    r315 r406  
    223223    bool_t    is_local   = (cxy_server == cxy_client);
    224224
    225     exec_dmsg("\n[INFO] %s starts for process %x on core %d in cluster %x"
     225    exec_dmsg("\n[DMSG] %s starts for process %x on core %d in cluster %x"
    226226                 " / target_cluster = %x / cycle %d\n",
    227227                 __FUNCTION__, process->pid , CURRENT_CORE->lid,
     
    261261    }
    262262
    263     exec_dmsg("\n[INFO] %s starts exec for process %x at cycle %d\n",
     263    exec_dmsg("\n[DMSG] %s starts exec for process %x at cycle %d\n",
    264264              __FUNCTION__, process->pid, hal_get_cycles() );
    265265
     
    275275    }
    276276
    277     exec_dmsg("\n[INFO] %s completes exec for process %x at cycle %d\n",
     277    exec_dmsg("\n[DMSG] %s completes exec for process %x at cycle %d\n",
    278278              __FUNCTION__, process->pid , hal_get_cycles() );
    279279
  • trunk/kernel/syscalls/sys_fork.c

    r101 r406  
    6363        }
    6464
    65         fork_dmsg("\n[INFO] %s : enters for process %d at cycle [%d]\n",
     65        fork_dmsg("\n[DMSG] %s : enters for process %d at cycle [%d]\n",
    6666                  __FUNCTION__, parent_process->pid, hal_get_cycles());
    6767
     
    7171        {
    7272                hal_fpu_context_save( parent_thread );
    73                 fork_dmsg("\n[INFO] %s : save FPU\n", __FUNCTION__);
     73                fork_dmsg("\n[DMSG] %s : save FPU\n", __FUNCTION__);
    7474        }
    7575
     
    129129    process_reference_init( child_process , child_pid , parent_pid );
    130130
    131         fork_dmsg("\n[INFO] : %s created child process : pid = %x / ppid = %x\n",
     131        fork_dmsg("\n[DMSG] : %s created child process : pid = %x / ppid = %x\n",
    132132              __FUNCTION__, child_pid , parent_pid );
    133133
     
    148148                            XPTR( local_cxy , &parent_process->fd_array ) );
    149149
    150         fork_dmsg("\n[INFO] %s : duplicated child process from parent process\n",
     150        fork_dmsg("\n[DMSG] %s : duplicated child process from parent process\n",
    151151                  __FUNCTION__ );
    152152
     
    162162    }
    163163 
    164         fork_dmsg("\n[INFO] %s : parent vmm duplicated in child process\n", __FUNCTION__ );
     164        fork_dmsg("\n[DMSG] %s : parent vmm duplicated in child process\n", __FUNCTION__ );
    165165
    166166    // create child main thread descriptor in local cluster
     
    197197    child_thread->trdid   = child_trdid;
    198198
    199         fork_dmsg("\n[INFO] %s : initialised child main thread\n", __FUNCTION__ );
     199        fork_dmsg("\n[DMSG] %s : initialised child main thread\n", __FUNCTION__ );
    200200
    201201    // register local child thread into local child process th_tbl[]
     
    208208        sched_register_thread( child_thread->core , child_thread );
    209209 
    210         fork_dmsg("\n[INFO] %s : registered main thread in scheduler\n", __FUNCTION__);
     210        fork_dmsg("\n[DMSG] %s : registered main thread in scheduler\n", __FUNCTION__);
    211211
    212212        // update DQDT for the child thread
    213213    dqdt_local_update_threads( 1 );
    214214
    215         fork_dmsg("\n[INFO] %s : completed / parent pid = %x / child pid = %x / at cycle [%d]\n",
     215        fork_dmsg("\n[DMSG] %s : completed / parent pid = %x / child pid = %x / at cycle [%d]\n",
    216216                  __FUNCTION__, parent_process->pid, child_process->pid, hal_get_cycles() );
    217217
  • trunk/kernel/syscalls/sys_signal.c

    r23 r406  
    4545        this->process->sig_mgr.sigactions[sig_id] = handler;
    4646
    47         signal_dmsg("\n[INFO] %s : handler @%x has been registred for signal %d\n",
     47        signal_dmsg("\n[DMSG] %s : handler @%x has been registred for signal %d\n",
    4848                    __FUNCTION__ , handler , sig_id );
    4949
  • trunk/kernel/syscalls/sys_thread_create.c

    r289 r406  
    161161        tm_end = hal_get_cycles();
    162162
    163         thread_dmsg("\n[INFO] %s created thread %x for process %x in cluster %x\n"
     163        thread_dmsg("\n[DMSG] %s created thread %x for process %x in cluster %x\n"
    164164                    "  start_cycle = %d / end_cycle = %d\n",
    165165                       trdid , process->pid , k_attr.cxy , tm_start , tm_end );
  • trunk/kernel/syscalls/sys_thread_sleep.c

    r296 r406  
    3232    thread_t * this = CURRENT_THREAD;
    3333
    34     thread_dmsg("\n[INFO] %s : thread %x in process %x goes to sleep at cycle %d\n",
     34    thread_dmsg("\n[DMSG] %s : thread %x in process %x goes to sleep at cycle %d\n",
    3535                __FUNCTION__, this->trdid, this->process->pid, hal_get_cycles() );
    3636
     
    3838    sched_yield( NULL );
    3939
    40     thread_dmsg("\n[INFO] %s : thread %x in process %x resume at cycle\n",
     40    thread_dmsg("\n[DMSG] %s : thread %x in process %x resume at cycle\n",
    4141                __FUNCTION__, this->trdid, this->process->pid, hal_get_cycles() );
    4242
  • trunk/kernel/syscalls/sys_trace.c

    r124 r406  
    4949        // desactivate thread trace TODO
    5050
    51             printk("\n[INFO] %s : trace OFF  for thread %x in process %x\n",
     51            printk("\n[DMSG] %s : trace OFF  for thread %x in process %x\n",
    5252               __FUNCTION__ , trdid , pid );
    5353    }
     
    5656        // activate thread trace TODO
    5757                   
    58             printk("\n[INFO] %s : trace ON for thread %x in process %x\n",
     58            printk("\n[DMSG] %s : trace ON for thread %x in process %x\n",
    5959               __FUNCTION__ , trdid , pid );
    6060    }
Note: See TracChangeset for help on using the changeset viewer.