Changeset 406 for trunk/kernel/kern


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

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

Location:
trunk/kernel/kern
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/kern/cluster.c

    r374 r406  
    8282        spinlock_init( &cluster->kcm_lock );
    8383
    84     cluster_dmsg("\n[INFO] %s for cluster %x enters\n",
     84    cluster_dmsg("\n[DMSG] %s for cluster %x enters\n",
    8585                 __FUNCTION__ , local_cxy );
    8686
     
    102102    }
    103103
    104     cluster_dmsg("\n[INFO] %s : PPM initialized in cluster %x at cycle %d\n",
     104    cluster_dmsg("\n[DMSG] %s : PPM initialized in cluster %x at cycle %d\n",
    105105                 __FUNCTION__ , local_cxy , hal_get_cycles() );
    106106
     
    108108        khm_init( &cluster->khm );
    109109
    110     cluster_dmsg("\n[INFO] %s : KHM initialized in cluster %x at cycle %d\n",
     110    cluster_dmsg("\n[DMSG] %s : KHM initialized in cluster %x at cycle %d\n",
    111111                 __FUNCTION__ , local_cxy , hal_get_cycles() );
    112112
     
    114114        kcm_init( &cluster->kcm , KMEM_KCM );
    115115
    116     cluster_dmsg("\n[INFO] %s : KCM initialized in cluster %x at cycle %d\n",
     116    cluster_dmsg("\n[DMSG] %s : KCM initialized in cluster %x at cycle %d\n",
    117117                 __FUNCTION__ , local_cxy , hal_get_cycles() );
    118118
     
    125125        }
    126126
    127     cluster_dmsg("\n[INFO] %s : cores initialized in cluster %x at cycle %d\n",
     127    cluster_dmsg("\n[DMSG] %s : cores initialized in cluster %x at cycle %d\n",
    128128                 __FUNCTION__ , local_cxy , hal_get_cycles() );
    129129
     
    132132    cluster->rpc_threads = 0;
    133133
    134     cluster_dmsg("\n[INFO] %s : RPC fifo inialized in cluster %x at cycle %d\n",
     134    cluster_dmsg("\n[DMSG] %s : RPC fifo inialized in cluster %x at cycle %d\n",
    135135                 __FUNCTION__ , local_cxy , hal_get_cycles() );
    136136
     
    157157    }
    158158
    159     cluster_dmsg("\n[INFO] %s Process Manager initialized in cluster %x at cycle %d\n",
     159    cluster_dmsg("\n[DMSG] %s Process Manager initialized in cluster %x at cycle %d\n",
    160160                 __FUNCTION__ , local_cxy , hal_get_cycles() );
    161161
  • trunk/kernel/kern/core.c

    r380 r406  
    113113        if( (ticks % CONFIG_SCHED_TICKS_PER_QUANTUM) == 0 ) sched_yield( NULL );
    114114
    115         // update DQDT TODO  This update should depend on the cluster identifier,
    116         // to avoid simultaneous updates from various clusters ... AG
     115        // update DQDT
    117116        if( ((ticks % CONFIG_DQDT_TICKS_PER_QUANTUM) == 0) && (core->lid == 0) )
    118117        dqdt_global_update();
  • trunk/kernel/kern/do_syscall.c

    r375 r406  
    116116        }
    117117
    118         syscall_dmsg("\n[INFO] %s : pid = %x / trdid = %x / service #%d\n"
     118        syscall_dmsg("\n[DMSG] %s : pid = %x / trdid = %x / service #%d\n"
    119119                 "         arg0 = %x / arg1 = %x / arg2 = %x / arg3 = %x\n",
    120120                         __FUNCTION__ , this->process->pid , this->trdid , service_num ,
  • trunk/kernel/kern/dqdt.c

    r374 r406  
    6060        for ( i = 0 ; i < 4 ; i++ )
    6161        {
    62             if ( local_node.children[i] != XPTR_NULL ) dqdt_global_print( local_node.children[i] );
     62            if ( local_node.children[i] != XPTR_NULL )
     63                dqdt_global_print( local_node.children[i] );
    6364        }
    6465    }
     
    7071                    uint32_t y_width )
    7172{
    72     if( (x_size > 32) || (y_size > 32) )
    73     {
    74         panic("illegal mesh size for DQDT support");
    75     }
     73    assert( ((x_size <= 32) && (y_size <= 32)) , __FUNCTION__ , "illegal mesh size\n");
    7674
    7775        dqdt_node_t * node;
  • trunk/kernel/kern/kernel_init.c

    r401 r406  
    137137           "    /_/        \\_\\ |______| |_|    |_|   \\_____/  |______/        |_|    |_|  |_|  \\_\\ |_|   |_|  \n"
    138138           "\n\n\t\t Advanced Locality Management Operating System / Multi Kernel Hybrid\n"
    139            "\n\n\t\t\t Version 0.0 : %d cluster(s)   /  %d core(s) per cluster\n\n", nclusters , ncores );
     139           "\n\n\t\t\t Version 0.0 / %d cluster(s) / %d core(s) per cluster\n\n", nclusters , ncores );
    140140}
    141141
     
    274274
    275275#if( CONFIG_KINIT_DEBUG > 1 )
    276 printk("\n[INFO] %s : created MMC in cluster %x / chdev = %x\n",
     276printk("\n[DMSG] %s : created MMC in cluster %x / chdev = %x\n",
    277277__FUNCTION__ , channel , local_cxy , chdev_ptr );
    278278#endif
     
    302302
    303303#if( CONFIG_KINIT_DEBUG > 1 )
    304 printk("\n[INFO] %s : created DMA[%d] in cluster %x / chdev = %x\n",
     304printk("\n[DMSG] %s : created DMA[%d] in cluster %x / chdev = %x\n",
    305305__FUNCTION__ , channel , local_cxy , chdev_ptr );
    306306#endif
     
    436436
    437437#if( CONFIG_KINIT_DEBUG > 1 )
    438 printk("\n[INFO] %s : create chdev %s[%d] in cluster %x / chdev = %x\n",
     438printk("\n[DMSG] %s : create chdev %s[%d] in cluster %x / chdev = %x\n",
    439439__FUNCTION__ , chdev_func_str( func ), channel , local_cxy , chdev );
    440440#endif
     
    554554
    555555#if( CONFIG_KINIT_DEBUG > 1 )
    556 printk("\n[INFO] %s created PIC chdev in cluster %x at cycle %d\n",
     556printk("\n[DMSG] %s created PIC chdev in cluster %x at cycle %d\n",
    557557__FUNCTION__ , local_cxy , (uint32_t)hal_time_stamp() );
    558558#endif
     
    728728
    729729    if( (core_lid ==  0) && (local_cxy == 0) )
    730     kinit_dmsg("\n[INFO] %s : exit barrier 0 : TXT0 initialized / cycle %d\n",
     730    printk("\n[KINIT] %s : exit barrier 0 : TXT0 initialized / cycle %d\n",
    731731    __FUNCTION__, hal_time_stamp() );
    732732
     
    762762
    763763    if( (core_lid ==  0) && (local_cxy == 0) )
    764     kinit_dmsg("\n[INFO] %s : exit barrier 1 : clusters initialised / cycle %d\n",
     764    printk("\n[KINIT] %s : exit barrier 1 : clusters initialised / cycle %d\n",
    765765    __FUNCTION__, hal_time_stamp() );
    766766
     
    787787
    788788    if( (core_lid ==  0) && (local_cxy == 0) )
    789     kinit_dmsg("\n[INFO] %s : exit barrier 2 : PIC initialised / cycle %d\n",
     789    printk("\n[KINIT] %s : exit barrier 2 : PIC initialised / cycle %d\n",
    790790    __FUNCTION__, hal_time_stamp() );
    791791
     
    818818
    819819    if( (core_lid ==  0) && (local_cxy == 0) )
    820     kinit_dmsg("\n[INFO] %s : exit barrier 3 : all chdev initialised / cycle %d\n",
     820    printk("\n[KINIT] %s : exit barrier 3 : all chdev initialised / cycle %d\n",
    821821               __FUNCTION__, hal_time_stamp());
    822822
     
    829829    /////////////////////////////////////////////////////////////////////////////////
    830830
    831 #if( CONFIG_KINIT_DEBUG > 1 )
     831#if CONFIG_KINIT_DEBUG
    832832chdev_dir_display();
    833833#endif
     
    856856    core->scheduler.idle = thread;
    857857
    858 #if( CONFIG_KINIT_DEBUG > 1 )
     858#if CONFIG_KINIT_DEBUG
    859859sched_display();
    860860#endif
     
    928928
    929929    if( (core_lid ==  0) && (local_cxy == 0) )
    930     kinit_dmsg("\n[INFO] %s : exit barrier 4 : VFS_root = %l in cluster 0 / cycle %d\n",
     930    printk("\n[KINIT] %s : exit barrier 4 : VFS_root = %l in cluster 0 / cycle %d\n",
    931931               __FUNCTION__, vfs_root_inode_xp , hal_time_stamp());
    932932
     
    987987
    988988    if( (core_lid ==  0) && (local_cxy == 0) )
    989     kinit_dmsg("\n[INFO] %s : exit barrier 5 : VFS_root = %l in cluster IO / cycle %d\n",
     989    printk("\n[KINIT] %s : exit barrier 5 : VFS_root = %l in cluster IO / cycle %d\n",
    990990    __FUNCTION__, vfs_root_inode_xp , hal_time_stamp() );
    991991
     
    10201020
    10211021    if( (core_lid ==  0) && (local_cxy == 0) )
    1022     kinit_dmsg("\n[INFO] %s : exit barrier 6 : dev_root = %l in cluster IO / cycle %d\n",
     1022    printk("\n[KINIT] %s : exit barrier 6 : dev_root = %l in cluster IO / cycle %d\n",
    10231023    __FUNCTION__, devfs_dev_inode_xp , hal_time_stamp() );
    10241024
     
    10571057
    10581058    if( (core_lid ==  0) && (local_cxy == 0) )
    1059     kinit_dmsg("\n[INFO] %s : exit barrier 7 : dev_root = %l in cluster 0 / cycle %d\n",
     1059    printk("\n[KINIT] %s : exit barrier 7 : dev_root = %l in cluster 0 / cycle %d\n",
    10601060    __FUNCTION__, devfs_dev_inode_xp , hal_time_stamp() );
    10611061
     
    10761076
    10771077    if( (core_lid ==  0) && (local_cxy == 0) )
    1078     kinit_dmsg("\n[INFO] %s : exit barrier 8 : process init created / cycle %d\n",
     1078    printk("\n[KINIT] %s : exit barrier 8 : process init created / cycle %d\n",
    10791079    __FUNCTION__ , hal_time_stamp() );
    10801080
     
    10871087        print_banner( (info->x_size * info->y_size) , info->cores_nr );
    10881088
     1089#if CONFIG_KINIT_DEBUG
     1090
    10891091        vfs_display( vfs_root_inode_xp );
    1090        
    1091         kinit_dmsg("\n\n***** memory fooprint for main kernel objects\n\n"
     1092
     1093        printk("\n\n***** memory fooprint for main kernel objects\n\n"
    10921094                   " - thread descriptor  : %d bytes\n"
    10931095                   " - process descriptor : %d bytes\n"
     
    11301132                   sizeof( rwlock_t          ),
    11311133                   sizeof( remote_rwlock_t   ));
     1134#endif
     1135
    11321136    }
    11331137
  • trunk/kernel/kern/printk.c

    r372 r406  
    327327            case ('l'):            /* 64 bits hexadecimal unsigned */
    328328            {
    329                 uint64_t val = va_arg( *args , uint64_t );
     329                unsigned long long val = va_arg( *args , unsigned long long );
    330330                txt_write( channel, busy, "0x" , 2 );
    331331                for(i = 0; i < 16; i++)
     
    340340            case ('L'):           /* 64 bits hexadecimal unsigned on 18 char */
    341341            {
    342                 uint64_t val = va_arg( *args , uint64_t );
     342                unsigned long long val = va_arg( *args , unsigned long long );
    343343                txt_write( channel, busy, "0x" , 2 );
    344344                for(i = 0; i < 16; i++)
  • trunk/kernel/kern/printk.h

    r389 r406  
    109109
    110110#if CONFIG_CLUSTER_DEBUG
    111 #define cluster_dmsg(...)   printk(__VA_ARGS__)
     111#define cluster_dmsg(...)   if(hal_time_stamp() > CONFIG_CLUSTER_DEBUG) printk(__VA_ARGS__)
    112112#else
    113113#define cluster_dmsg(...)
     
    115115
    116116#if CONFIG_CONTEXT_DEBUG
    117 #define context_dmsg(...)   printk(__VA_ARGS__)
     117#define context_dmsg(...)   if(hal_time_stamp() > CONFIG_CONTEXT_DEBUG) printk(__VA_ARGS__)
    118118#else
    119119#define context_dmsg(...)
     
    121121
    122122#if CONFIG_CORE_DEBUG
    123 #define core_dmsg(...)   printk(__VA_ARGS__)
     123#define core_dmsg(...)   if(hal_time_stamp() > CONFIG_CORE_DEBUG) printk(__VA_ARGS__)
    124124#else
    125125#define core_dmsg(...)
     
    127127
    128128#if CONFIG_DEVFS_DEBUG
    129 #define devfs_dmsg(...)   printk(__VA_ARGS__)
     129#define devfs_dmsg(...)   if(hal_time_stamp() > CONFIG_DEVFS_DEBUG) printk(__VA_ARGS__)
    130130#else
    131131#define devfs_dmsg(...)
     
    133133
    134134#if CONFIG_DMA_DEBUG
    135 #define dma_dmsg(...)   printk(__VA_ARGS__)
     135#define dma_dmsg(...)   if(hal_time_stamp() > CONFIG_DMA_DEBUG) printk(__VA_ARGS__)
    136136#else
    137137#define dma_dmsg(...)
     
    139139
    140140#if CONFIG_DQDT_DEBUG
    141 #define dma_dmsg(...)   printk(__VA_ARGS__)
    142 #else
    143 #define dma_dmsg(...)
    144 #endif
    145 
    146 #if CONFIG_DQDT_DEBUG
    147 #define dqdt_dmsg(...)   printk(__VA_ARGS__)
     141#define dqdt_dmsg(...)   if(hal_time_stamp() > CONFIG_DQDT_DEBUG) printk(__VA_ARGS__)
    148142#else
    149143#define dqdt_dmsg(...)
     
    151145
    152146#if CONFIG_ELF_DEBUG
    153 #define elf_dmsg(...)   printk(__VA_ARGS__)
     147#define elf_dmsg(...)   if(hal_time_stamp() > CONFIG_ELF_DEBUG) printk(__VA_ARGS__)
    154148#else
    155149#define elf_dmsg(...)
     
    157151
    158152#if CONFIG_EXEC_DEBUG
    159 #define exec_dmsg(...)   printk(__VA_ARGS__)
     153#define exec_dmsg(...)   if(hal_time_stamp() > CONFIG_EXEC_DEBUG) printk(__VA_ARGS__)
    160154#else
    161155#define exec_dmsg(...)
    162156#endif
    163157
     158#if CONFIG_EXCP_DEBUG
     159#define excp_dmsg(...)   if(hal_time_stamp() > CONFIG_EXCP_DEBUG) printk(__VA_ARGS__)
     160#else
     161#define excp_dmsg(...)
     162#endif
     163
    164164#if CONFIG_FATFS_DEBUG
    165 #define fatfs_dmsg(...)   printk(__VA_ARGS__)
     165#define fatfs_dmsg(...)   if(hal_time_stamp() > CONFIG_FATFS_DEBUG) printk(__VA_ARGS__)
    166166#else
    167167#define fatfs_dmsg(...)
     
    169169
    170170#if CONFIG_FBF_DEBUG
    171 #define fbf_dmsg(...)   printk(__VA_ARGS__)
     171#define fbf_dmsg(...)   if(hal_time_stamp() > CONFIG_FBF_DEBUG) printk(__VA_ARGS__)
    172172#else
    173173#define fbf_dmsg(...)
     
    175175
    176176#if CONFIG_FORK_DEBUG
    177 #define fork_dmsg(...)   printk(__VA_ARGS__)
     177#define fork_dmsg(...)   if(hal_time_stamp() > CONFIG_FORK_DEBUG) printk(__VA_ARGS__)
    178178#else
    179179#define fork_dmsg(...)
    180180#endif
    181181
     182#if CONFIG_GPT_DEBUG
     183#define gpt_dmsg(...)   if(hal_time_stamp() > CONFIG_GPT_DEBUG) printk(__VA_ARGS__)
     184#else
     185#define gpt_dmsg(...)
     186#endif
     187
    182188#if CONFIG_IDLE_DEBUG
    183 #define idle_dmsg(...) printk(__VA_ARGS__)
     189#define idle_dmsg(...)   if(hal_time_stamp() > CONFIG_IDLE_DEBUG) printk(__VA_ARGS__)
    184190#else
    185191#define idle_dmsg(...)
     
    193199
    194200#if CONFIG_IRQ_DEBUG
    195 #define irq_dmsg(...)   printk(__VA_ARGS__)
     201#define irq_dmsg(...)   if(hal_time_stamp() > CONFIG_IRQ_DEBUG) printk(__VA_ARGS__)
    196202#else
    197203#define irq_dmsg(...)
     
    199205
    200206#if CONFIG_KCM_DEBUG
    201 #define kcm_dmsg(...) printk(__VA_ARGS__)
     207#define kcm_dmsg(...)   if(hal_time_stamp() > CONFIG_KCM_DEBUG) printk(__VA_ARGS__)
    202208#else
    203209#define kcm_dmsg(...)
     
    205211
    206212#if CONFIG_KHM_DEBUG
    207 #define khm_dmsg(...) printk(__VA_ARGS__)
     213#define khm_dmsg(...)   if(hal_time_stamp() > CONFIG_KHM_DEBUG) printk(__VA_ARGS__)
    208214#else
    209215#define khm_dmsg(...)
     
    211217
    212218#if CONFIG_KINIT_DEBUG
    213 #define kinit_dmsg(...) printk(__VA_ARGS__)
     219#define kinit_dmsg(...)   if(hal_time_stamp() > CONFIG_KINIT_DEBUG) printk(__VA_ARGS__)
    214220#else
    215221#define kinit_dmsg(...)
     
    217223
    218224#if CONFIG_KMEM_DEBUG
    219 #define kmem_dmsg(...) printk(__VA_ARGS__)
     225#define kmem_dmsg(...)   if(hal_time_stamp() > CONFIG_KMEM_DEBUG) printk(__VA_ARGS__)
    220226#else
    221227#define kmem_dmsg(...)
     
    223229
    224230#if CONFIG_MAPPER_DEBUG
    225 #define mapper_dmsg(...)   printk(__VA_ARGS__)
     231#define mapper_dmsg(...)   if(hal_time_stamp() > CONFIG_MAPPER_DEBUG) printk(__VA_ARGS__)
    226232#else
    227233#define mapper_dmsg(...)
     
    229235
    230236#if CONFIG_MMC_DEBUG
    231 #define mmc_dmsg(...)   printk(__VA_ARGS__)
     237#define mmc_dmsg(...)   if(hal_time_stamp() > CONFIG_MMC_DEBUG) printk(__VA_ARGS__)
    232238#else
    233239#define mmc_dmsg(...)
     
    235241
    236242#if CONFIG_NIC_DEBUG
    237 #define nic_dmsg(...)   printk(__VA_ARGS__)
     243#define nic_dmsg(...)   if(hal_time_stamp() > CONFIG_NIC_DEBUG) printk(__VA_ARGS__)
    238244#else
    239245#define nic_dmsg(...)
     
    241247
    242248#if CONFIG_PIC_DEBUG
    243 #define pic_dmsg(...)   printk(__VA_ARGS__)
     249#define pic_dmsg(...)   if(hal_time_stamp() > CONFIG_PIC_DEBUG) printk(__VA_ARGS__)
    244250#else
    245251#define pic_dmsg(...)
     
    247253
    248254#if CONFIG_PPM_DEBUG
    249 #define ppm_dmsg(...)   printk(__VA_ARGS__)
     255#define ppm_dmsg(...)   if(hal_time_stamp() > CONFIG_PPM_DEBUG) printk(__VA_ARGS__)
    250256#else
    251257#define ppm_dmsg(...)
     
    253259
    254260#if CONFIG_PROCESS_DEBUG
    255 #define process_dmsg(...)   printk(__VA_ARGS__)
     261#define process_dmsg(...)   if(hal_time_stamp() > CONFIG_PROCESS_DEBUG) printk(__VA_ARGS__)
    256262#else
    257263#define process_dmsg(...)
     
    264270#endif
    265271
    266 #if CONFIG_RPCG_DEBUG
    267 #define rpcg_dmsg(...)   printk(__VA_ARGS__)
    268 #else
    269 #define rpcg_dmsg(...)
    270 #endif
    271 
    272272#if CONFIG_SCHED_DEBUG
    273 #define sched_dmsg(...)   printk(__VA_ARGS__)
     273#define sched_dmsg(...)   if(hal_time_stamp() > CONFIG_SCHED_DEBUG) printk(__VA_ARGS__)
    274274#else
    275275#define sched_dmsg(...)
     
    277277
    278278#if CONFIG_SIGNAL_DEBUG
    279 #define signal_dmsg(...)   printk(__VA_ARGS__)
     279#define signal_dmsg(...)   if(hal_time_stamp() > CONFIG_SIGNAL_DEBUG) printk(__VA_ARGS__)
    280280#else
    281281#define signal_dmsg(...)
     
    283283
    284284#if CONFIG_SYSCALL_DEBUG
    285 #define syscall_dmsg(...)   printk(__VA_ARGS__)
     285#define syscall_dmsg(...)   if(hal_time_stamp() > CONFIG_SYSCALL_DEBUG) printk(__VA_ARGS__)
    286286#else
    287287#define syscall_dmsg(...)
     
    289289
    290290#if CONFIG_THREAD_DEBUG
    291 #define thread_dmsg(...)   printk(__VA_ARGS__)
     291#define thread_dmsg(...)   if(hal_time_stamp() > CONFIG_THREAD_DEBUG) printk(__VA_ARGS__)
    292292#else
    293293#define thread_dmsg(...)
     
    295295
    296296#if CONFIG_TXT_DEBUG
    297 #define txt_dmsg(...)   printk(__VA_ARGS__)
     297#define txt_dmsg(...)   if(hal_time_stamp() > CONFIG_TXT_DEBUG) printk(__VA_ARGS__)
    298298#else
    299299#define txt_dmsg(...)
     
    307307
    308308#if CONFIG_VMM_DEBUG
    309 #define vmm_dmsg(...)   printk(__VA_ARGS__)
     309#define vmm_dmsg(...)   if(hal_time_stamp() > CONFIG_VMM_DEBUG) printk(__VA_ARGS__)
    310310#else
    311311#define vmm_dmsg(...)
  • trunk/kernel/kern/process.c

    r380 r406  
    9090    pid_t       parent_pid;
    9191
    92     process_dmsg("\n[INFO] %s : enters for process %x in cluster %x\n",
    93                  __FUNCTION__ , pid , local_cxy );
     92    process_dmsg("\n[DMSG] %s : core[%x,%d] enters for process %x\n",
     93    __FUNCTION__ , local_cxy , CURRENT_THREAD->core->lid , pid );
    9494
    9595    // get parent process cluster, local pointer, and pid
     
    116116    process->ppid  = parent_pid;
    117117
    118     // reset reference process vmm (not for kernel process)
     118    // initialize reference process vmm (not for kernel process)
    119119    if( pid ) vmm_init( process );
    120120
     
    169169        hal_fence();
    170170
    171     process_dmsg("\n[INFO] %s : exit for process %x in cluster %x\n",
     171    process_dmsg("\n[DMSG] %s : exit for process %x in cluster %x\n",
    172172                 __FUNCTION__ , pid );
    173173
     
    198198    local_process->ref_xp = reference_process_xp;
    199199
    200     process_dmsg("\n[INFO] %s : enter for process %x in cluster %x\n",
     200    process_dmsg("\n[DMSG] %s : enter for process %x in cluster %x\n",
    201201                 __FUNCTION__ , local_process->pid );
    202202
     
    233233        hal_fence();
    234234
    235     process_dmsg("\n[INFO] %s : exit for process %x in cluster %x\n",
     235    process_dmsg("\n[DMSG] %s : exit for process %x in cluster %x\n",
    236236                 __FUNCTION__ , local_process->pid );
    237237
     
    288288    vmm_destroy( process );
    289289
    290         process_dmsg("\n[INFO] %s for pid %d / page_faults = %d\n",
     290        process_dmsg("\n[DMSG] %s for pid %d / page_faults = %d\n",
    291291                 __FUNCTION__ , process->pid, process->vmm.pgfault_nr );
    292292}
     
    627627    parent_pid = hal_remote_lw( XPTR( parent_cxy , &parent_ptr->pid ) );
    628628
    629     exec_dmsg("\n[INFO] %s : thread %x on core[%x,%d] enters for path = %s\n",
     629    exec_dmsg("\n[DMSG] %s : thread %x on core[%x,%d] enters for path = %s\n",
    630630    __FUNCTION__, CURRENT_THREAD->trdid, local_cxy, CURRENT_THREAD->core->lid , path );
    631631
     
    654654    process_reference_init( process , pid , parent_xp );
    655655
    656     exec_dmsg("\n[INFO] %s : thread %x on core[%x,%d] created process %x / path = %s\n",
     656    exec_dmsg("\n[DMSG] %s : thread %x on core[%x,%d] created process %x / path = %s\n",
    657657    __FUNCTION__, CURRENT_THREAD->trdid, local_cxy, CURRENT_THREAD->core->lid, pid, path );
    658658
     
    670670                            XPTR( parent_cxy , &parent_ptr->fd_array) );
    671671
    672     exec_dmsg("\n[INFO] %s : fd_array copied from process %x to process %x\n",
     672    exec_dmsg("\n[DMSG] %s : fd_array copied from process %x to process %x\n",
    673673    __FUNCTION__, parent_pid , pid );
    674674
     
    688688        }
    689689
    690     exec_dmsg("\n[INFO] %s : code and data vsegs registered for process %x / path = %s\n",
     690    exec_dmsg("\n[DMSG] %s : code and data vsegs registered for process %x / path = %s\n",
    691691    __FUNCTION__ , pid , path );
    692692
     
    714714        }
    715715
    716         exec_dmsg("\n[INFO] %s : thread created for process %x on core %d in cluster %x\n",
     716        exec_dmsg("\n[DMSG] %s : thread created for process %x on core %d in cluster %x\n",
    717717               __FUNCTION__ , pid , core->lid , local_cxy );
     718
     719#if CONFIG_EXEC_DEBUG
     720if( hal_time_stamp() > CONFIG_EXEC_DEBUG )
     721{
     722    grdxt_print( &process->vmm.grdxt , GRDXT_TYPE_VSEG , process->pid );
     723    hal_gpt_print( &process->vmm.gpt , process->pid );
     724}
     725#endif
    718726
    719727    // update children list in parent process
     
    725733        thread_unblock( XPTR( local_cxy , thread ) , THREAD_BLOCKED_GLOBAL );
    726734
    727     exec_dmsg("\n[INFO] %s : exit for process %x\n",
     735    exec_dmsg("\n[DMSG] %s : exit for process %x\n",
    728736                __FUNCTION__, process->pid );
    729737
     
    747755    uint32_t  stderr_id;
    748756
    749         process_dmsg("\n[INFO] %s : enters in cluster %x\n", __FUNCTION__ , local_cxy );
     757        process_dmsg("\n[DMSG] %s : enters in cluster %x\n", __FUNCTION__ , local_cxy );
    750758
    751759    // open stdin / stdout / stderr pseudo-files
     
    771779        assert( (error1 == 0) , __FUNCTION__ , "cannot create process_init\n");
    772780
    773         process_dmsg("\n[INFO] %s : exit in cluster %x\n", __FUNCTION__ , local_cxy );
     781        process_dmsg("\n[DMSG] %s : exit in cluster %x\n", __FUNCTION__ , local_cxy );
    774782               
    775783    hal_fence();
  • trunk/kernel/kern/rpc.c

    r389 r406  
    9797                                page_t  ** page )      // out
    9898{
    99     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     99    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    100100    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    101101    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    117117    *page    = (page_t *)(intptr_t)rpc.args[1];
    118118
    119     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     119    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    120120    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    121121    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    125125void rpc_pmem_get_pages_server( xptr_t xp )
    126126{
    127     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     127    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    128128    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    129129    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    142142    hal_remote_swd( XPTR( cxy , &desc->args[1] ) , (uint64_t)(intptr_t)page );
    143143
    144     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     144    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    145145    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    146146    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    157157                                   pid_t     * pid )     // out
    158158{
    159     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     159    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    160160    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    161161    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    178178    *error  = (error_t)rpc.args[2];     
    179179
    180     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     180    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    181181    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    182182    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    190190    pid_t       pid;       // output : process identifier
    191191
    192     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     192    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    193193    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    194194    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    209209    hal_remote_sw( XPTR( client_cxy , &desc->args[1] ) , (uint64_t)pid );
    210210
    211     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     211    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    212212    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    213213    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    224224                              error_t     * error )   // out
    225225{
    226     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     226    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    227227    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    228228    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    244244    *error  = (error_t)rpc.args[1];     
    245245
    246     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     246    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    247247    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    248248    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    256256    error_t       error;     // local error error status
    257257
    258     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     258    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    259259    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    260260    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    278278    hal_remote_swd( XPTR( client_cxy , &desc->args[1] ) , (uint64_t)error );
    279279
    280     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     280    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    281281    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    282282    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    291291void rpc_process_kill_client( process_t * process )
    292292{
    293     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     293    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    294294    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    295295    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    325325    }
    326326
    327     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     327    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    328328    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    329329    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    336336    process_t * process; 
    337337
    338     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     338    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    339339    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    340340    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    360360    }
    361361
    362     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     362    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    363363    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    364364    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    379379                                    error_t        * error )      // out
    380380{
    381     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     381    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    382382    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    383383    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    403403    *error     = (error_t)rpc.args[5];
    404404
    405     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     405    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    406406    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    407407    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    421421    error_t          error;
    422422
    423     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     423    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    424424    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    425425    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    456456    hal_remote_swd( XPTR( client_cxy , &desc->args[2] ) , (uint64_t)thread_xp );
    457457
    458     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     458    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    459459    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    460460    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    473473                                      error_t * error )      // out
    474474{
    475     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     475    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    476476    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    477477    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    496496    *error     = (error_t)rpc.args[4];
    497497
    498     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     498    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    499499    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    500500    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    509509    error_t          error;   
    510510
    511     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     511    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    512512    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    513513    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    533533    hal_remote_swd( XPTR( client_cxy , &desc->args[2] ) , (uint64_t)thread_xp );
    534534
    535     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     535    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    536536    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    537537    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    547547                             uint32_t    sig_id )    // in
    548548{
    549     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     549    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    550550    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    551551    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    565565    rpc_send_sync( cxy , &rpc );
    566566
    567     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     567    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    568568    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    569569    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    576576    uint32_t     sig_id;   // signal index
    577577
    578     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     578    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    579579    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    580580    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    591591    signal_rise( process , sig_id );
    592592
    593     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     593    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    594594    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    595595    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    613613                                  error_t      * error )     // out
    614614{
    615     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     615    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    616616    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    617617    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    641641    *error    = (error_t)rpc.args[9];
    642642
    643     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     643    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    644644    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    645645    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    660660    error_t          error;
    661661
    662     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     662    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    663663    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    664664    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    693693    hal_remote_swd( XPTR( client_cxy , &desc->args[9] ) , (uint64_t)error );
    694694
    695     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     695    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    696696    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    697697    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    706706                                   struct vfs_inode_s * inode )
    707707{
    708     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     708    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    709709    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    710710    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    723723    rpc_send_sync( cxy , &rpc );
    724724
    725     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     725    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    726726    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    727727    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    733733    vfs_inode_t * inode;
    734734
    735     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     735    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    736736    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    737737    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    747747    vfs_inode_destroy( inode );
    748748
    749     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     749    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    750750    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    751751    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    764764                                   error_t              * error )       // out
    765765{
    766     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     766    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    767767    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    768768    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    787787    *error     = (error_t)rpc.args[4];
    788788
    789     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     789    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    790790    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    791791    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    803803    char          name_copy[CONFIG_VFS_MAX_NAME_LENGTH];
    804804
    805     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     805    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    806806    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    807807    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    829829    hal_remote_swd( XPTR( client_cxy , &desc->args[4] ) , (uint64_t)error );
    830830
    831     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     831    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    832832    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    833833    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    843843                                    vfs_dentry_t * dentry )
    844844{
    845     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     845    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    846846    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    847847    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    860860    rpc_send_sync( cxy , &rpc );
    861861
    862     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     862    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    863863    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    864864    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    870870    vfs_dentry_t * dentry;
    871871
    872     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     872    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    873873    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    874874    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    884884    vfs_dentry_destroy( dentry );
    885885
    886     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     886    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    887887    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    888888    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    901901                                 error_t              * error )      // out
    902902{
    903     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     903    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    904904    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    905905    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    923923    *error   = (error_t)rpc.args[3];
    924924
    925     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     925    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    926926    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    927927    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    936936    error_t       error;
    937937
    938     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     938    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    939939    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    940940    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    957957    hal_remote_swd( XPTR( client_cxy , &desc->args[3] ) , (uint64_t)error );
    958958
    959     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     959    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    960960    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    961961    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    970970                                  vfs_file_t * file )
    971971{
    972     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     972    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    973973    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    974974    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    987987    rpc_send_sync( cxy , &rpc );
    988988
    989     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     989    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    990990    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    991991    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    997997    vfs_file_t * file;
    998998
    999     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     999    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    10001000    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    10011001    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    10111011    vfs_file_destroy( file );
    10121012
    1013     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     1013    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    10141014    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    10151015    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    10271027                                error_t     * error )          // out
    10281028{
    1029     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     1029    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    10301030    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    10311031    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    10491049    *error   = (error_t)rpc.args[3];
    10501050
    1051     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     1051    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    10521052    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    10531053    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    10641064    char          name_copy[CONFIG_VFS_MAX_NAME_LENGTH];
    10651065
    1066     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     1066    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    10671067    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    10681068    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    10871087    hal_remote_swd( XPTR( client_cxy , &desc->args[3] ) , (uint64_t)error );
    10881088
    1089     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     1089    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    10901090    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    10911091    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    11011101                                     error_t     * error )     // out
    11021102{
    1103     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     1103    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    11041104    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    11051105    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    11211121    *error   = (error_t)rpc.args[1];
    11221122
    1123     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     1123    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    11241124    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    11251125    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    11321132    vfs_inode_t * inode;
    11331133
    1134     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     1134    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    11351135    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    11361136    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    11491149    hal_remote_swd( XPTR( client_cxy , &desc->args[1] ) , (uint64_t)error );
    11501150
    1151     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     1151    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    11521152    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    11531153    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    11661166                                   error_t  * error )    // out
    11671167{
    1168     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     1168    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    11691169    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    11701170    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    11891189    *error   = (error_t)rpc.args[4];
    11901190
    1191     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     1191    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    11921192    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    11931193    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    12031203    error_t       error;
    12041204
    1205     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     1205    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    12061206    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    12071207    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    12231223    hal_remote_swd( XPTR( client_cxy , &desc->args[4] ) , (uint64_t)error );
    12241224
    1225     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     1225    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    12261226    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    12271227    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    12391239                              error_t   * error )      // out
    12401240{
    1241     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     1241    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    12421242    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    12431243    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    12611261    *error   = (error_t)rpc.args[3];
    12621262
    1263     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     1263    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    12641264    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    12651265    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    12751275    error_t       error;
    12761276
    1277     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     1277    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    12781278    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    12791279    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    12951295    hal_remote_swd( XPTR( client_cxy , &desc->args[3] ) , (uint64_t)error );
    12961296
    1297     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     1297    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    12981298    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    12991299    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    13131313                             error_t   * error )   // out
    13141314{
    1315     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     1315    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    13161316    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    13171317    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    13361336    *error = (error_t)rpc.args[4];
    13371337
    1338     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     1338    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    13391339    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    13401340    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    13501350    error_t       error;
    13511351
    1352     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     1352    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    13531353    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    13541354    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    13701370    hal_remote_swd( XPTR( client_cxy , &desc->args[4] ) , (uint64_t)error );
    13711371
    1372     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     1372    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    13731373    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    13741374    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    13841384                           xptr_t *   buf_xp )     // out
    13851385{
    1386     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     1386    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    13871387    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    13881388    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    14041404    *buf_xp = (xptr_t)rpc.args[1];
    14051405
    1406     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     1406    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    14071407    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    14081408    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    14121412void rpc_kcm_alloc_server( xptr_t xp )
    14131413{
    1414     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     1414    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    14151415    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    14161416    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    14331433    hal_remote_swd( XPTR( client_cxy , &desc->args[1] ) , (uint64_t)buf_xp );
    14341434
    1435     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     1435    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    14361436    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    14371437    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    14471447                          uint32_t   kmem_type )   // in
    14481448{
    1449     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     1449    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    14501450    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    14511451    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    14651465    rpc_send_sync( cxy , &rpc );
    14661466
    1467     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     1467    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    14681468    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    14691469    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    14731473void rpc_kcm_free_server( xptr_t xp )
    14741474{
    1475     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     1475    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    14761476    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    14771477    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    14911491    kmem_free( &req );
    14921492
    1493     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     1493    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    14941494    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    14951495    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    15101510                                    error_t  * error )        // out
    15111511{
    1512     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     1512    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    15131513    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    15141514    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    15351535    *error     = (error_t)rpc.args[6];
    15361536
    1537     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     1537    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    15381538    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    15391539    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    15521552    error_t    error;
    15531553
    1554     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     1554    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    15551555    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    15561556    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    15921592    hal_remote_swd( XPTR( client_cxy , &desc->args[6] ) , (uint64_t)error );
    15931593
    1594     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     1594    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    15951595    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    15961596    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    16071607                                 page_t         ** page )      // out
    16081608{
    1609     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     1609    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    16101610    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    16111611    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    16281628    *page = (page_t *)(intptr_t)rpc.args[2];
    16291629
    1630     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     1630    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    16311631    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    16321632    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    16361636void rpc_mapper_get_page_server( xptr_t xp )
    16371637{
    1638     rpc_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     1638    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    16391639    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    16401640    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    16541654    hal_remote_swd( XPTR( cxy , &desc->args[1] ) , (uint64_t)(intptr_t)page );
    16551655
    1656     rpc_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
     1656    rpc_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d] / cycle %d\n",
    16571657    __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy,
    16581658    CURRENT_THREAD->core->lid , hal_time_stamp() );
     
    16731673    reg_t      sr_save;
    16741674
    1675     rpcg_dmsg("\n[INFO] %s : enter / client_cxy = %x / server_cxy = %x / cycle %d\n",
     1675    rpc_dmsg("\n[DMSG] %s : enter / client_cxy = %x / server_cxy = %x / cycle %d\n",
    16761676    __FUNCTION__ , local_cxy , server_cxy , hal_time_stamp() );
    16771677
     
    17001700    while( error );
    17011701 
    1702     rpcg_dmsg("\n[INFO] %s : RPC %l registered / server_cxy = %x / cycle %d\n",
     1702    rpc_dmsg("\n[DMSG] %s : RPC %l registered / server_cxy = %x / cycle %d\n",
    17031703    __FUNCTION__ , desc_xp , server_cxy , hal_time_stamp() );
    17041704       
     
    17141714                    dev_pic_send_ipi( server_cxy , 0 );
    17151715
    1716                     rpcg_dmsg("\n[INFO] %s : IPI sent / client_cxy = %x / server_cxy = %x\n",
     1716                    rpc_dmsg("\n[DMSG] %s : IPI sent / client_cxy = %x / server_cxy = %x\n",
    17171717            __FUNCTION__, local_cxy , server_cxy );
    17181718        }
     
    17291729        hal_restore_irq( sr_save );
    17301730
    1731     rpcg_dmsg("\n[INFO] %s : completed / client_cxy = %x / server_cxy = %x / cycle %d\n",
     1731    rpc_dmsg("\n[DMSG] %s : completed / client_cxy = %x / server_cxy = %x / cycle %d\n",
    17321732    __FUNCTION__ , local_cxy , server_cxy , hal_time_stamp() );
    17331733
     
    17641764        count = 0;
    17651765
    1766     rpcg_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     1766    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    17671767    __FUNCTION__, this->trdid, local_cxy, core->lid , hal_time_stamp() );
    17681768 
     
    17811781                index = hal_remote_lw( XPTR( client_cxy , &desc->index ) );
    17821782
    1783             rpcg_dmsg("\n[INFO] %s : thread %x on core [%x,%d] / rpc = %d\n",
     1783            rpc_dmsg("\n[DMSG] %s : thread %x on core [%x,%d] / rpc = %d\n",
    17841784                     __FUNCTION__ , this->trdid , core->lid , local_cxy , index );
    17851785
     
    18501850        thread->blocked = 0;
    18511851
    1852         rpcg_dmsg("\n[INFO] %s : activate RPC thread %x on core [%x,%d] / cycle %d\n",
     1852        rpc_dmsg("\n[DMSG] %s : activate RPC thread %x on core [%x,%d] / cycle %d\n",
    18531853                          __FUNCTION__ , thread , core->gid , local_cxy , hal_time_stamp() );
    18541854    }
     
    18751875            hal_atomic_add( &LOCAL_CLUSTER->rpc_threads , 1 );
    18761876
    1877         rpcg_dmsg("\n[INFO] %s : create RPC thread %x on core [%x,%d] / cycle %d\n",
     1877        rpc_dmsg("\n[DMSG] %s : create RPC thread %x on core [%x,%d] / cycle %d\n",
    18781878                          __FUNCTION__ , thread->trdid, local_cxy, core->lid, hal_time_stamp() );
    18791879    }
     
    19001900    error_t      error;
    19011901
    1902     rpcg_dmsg("\n[INFO] %s : enter / thread %x / cluster %x / cycle %d\n",
     1902    rpc_dmsg("\n[DMSG] %s : enter / thread %x / cluster %x / cycle %d\n",
    19031903             __FUNCTION__ , this->trdid , local_cxy , hal_time_stamp() );
    19041904
     
    19061906        if( (rpc_fifo->owner != 0) || (local_fifo_is_empty( &rpc_fifo->fifo )) )
    19071907    {
    1908         rpcg_dmsg("\n[INFO] %s : exit do nothing / thread %x / cluster %x / cycle %d\n",
     1908        rpc_dmsg("\n[DMSG] %s : exit do nothing / thread %x / cluster %x / cycle %d\n",
    19091909                 __FUNCTION__ , this->trdid , local_cxy , hal_time_stamp() );
    19101910
     
    19261926        }
    19271927
    1928         rpcg_dmsg("\n[INFO] %s : exit after RPC thread activation / "
     1928        rpc_dmsg("\n[DMSG] %s : exit after RPC thread activation / "
    19291929                 "thread %x / cluster %x / cycle %d\n",
    19301930                 __FUNCTION__ , this->trdid , local_cxy , hal_time_stamp() );
     
    19341934    else  // light lock taken by another thread
    19351935    {
    1936         rpcg_dmsg("\n[INFO] %s : exit do nothing / thread %x / cluster %x / cycle %d\n",
     1936        rpc_dmsg("\n[DMSG] %s : exit do nothing / thread %x / cluster %x / cycle %d\n",
    19371937                 __FUNCTION__ , this->trdid , local_cxy , hal_time_stamp() );
    19381938
     
    19511951        rpc_fifo_t * rpc_fifo = &LOCAL_CLUSTER->rpc_fifo;
    19521952
    1953     rpcg_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
     1953    rpc_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d] / cycle %d\n",
    19541954             __FUNCTION__, this->trdid, local_cxy, this->core->lid, hal_time_stamp() );
    19551955
     
    19751975                if( LOCAL_CLUSTER->rpc_threads >= CONFIG_RPC_THREADS_MAX )
    19761976                {
    1977             rpcg_dmsg("\n[INFO] %s : RPC thread %x on core[%x,%d] suicide / cycle %d\n",
     1977            rpc_dmsg("\n[DMSG] %s : RPC thread %x on core[%x,%d] suicide / cycle %d\n",
    19781978                    __FUNCTION__, this->trdid, local_cxy, this->core->lid, hal_time_stamp() );
    19791979
     
    19861986        else
    19871987        {
    1988             rpcg_dmsg("\n[INFO] %s : RPC thread %x on core[%x,%d] blocks / cycle %d\n",
     1988            rpc_dmsg("\n[DMSG] %s : RPC thread %x on core[%x,%d] blocks / cycle %d\n",
    19891989                        __FUNCTION__, this->trdid, local_cxy, this->core->lid, hal_time_stamp() );
    19901990
     
    19921992            sched_yield( NULL );
    19931993
    1994                     rpcg_dmsg("\n[INFO] %s : RPC thread %x wake up on core[%x,%d] / cycle %d\n",
     1994                    rpc_dmsg("\n[DMSG] %s : RPC thread %x wake up on core[%x,%d] / cycle %d\n",
    19951995                __FUNCTION__, this->trdid, local_cxy, this->core->lid, hal_time_stamp() );
    19961996        }
  • trunk/kernel/kern/scheduler.c

    r374 r406  
    154154    scheduler_t * sched = &core->scheduler;
    155155
    156     sched_dmsg("\n[INFO] %s : enter core[%x,%d] / cycle %d\n",
     156    sched_dmsg("\n[DMSG] %s : enter core[%x,%d] / cycle %d\n",
    157157    __FUNCTION__ , local_cxy , core->lid , hal_time_stamp() );
    158158
     
    185185                spinlock_unlock( &sched->lock );
    186186
    187                 sched_dmsg("\n[INFO] %s : exit core[%x,%d] / k_thread = %x / cycle %d\n",
     187                sched_dmsg("\n[DMSG] %s : exit core[%x,%d] / k_thread = %x / cycle %d\n",
    188188                __FUNCTION__ , local_cxy , core->lid , thread->trdid , hal_time_stamp() );
    189189
     
    216216                spinlock_unlock( &sched->lock );
    217217
    218                 sched_dmsg("\n[INFO] %s : exit core[%x,%d] / u_thread = %x / cycle %d\n",
     218                sched_dmsg("\n[DMSG] %s : exit core[%x,%d] / u_thread = %x / cycle %d\n",
    219219                __FUNCTION__ , local_cxy , core->lid , thread->trdid , hal_time_stamp() );
    220220                return thread;
     
    227227    spinlock_unlock( &sched->lock );
    228228
    229     sched_dmsg("\n[INFO] %s : exit core[%x,%d] / idle = %x / cycle %d\n",
     229    sched_dmsg("\n[DMSG] %s : exit core[%x,%d] / idle = %x / cycle %d\n",
    230230    __FUNCTION__ , local_cxy , core->lid , sched->idle->trdid , hal_time_stamp() );
    231231
     
    242242    scheduler_t  * sched = &core->scheduler;
    243243
    244     sched_dmsg("\n[INFO] %s : enter / thread %x on core[%x,%d]\n",
     244    sched_dmsg("\n[DMSG] %s : enter / thread %x on core[%x,%d]\n",
    245245    __FUNCTION__, CURRENT_THREAD->trdid , local_cxy , core->lid );
    246246
     
    265265    spinlock_unlock( &sched->lock );
    266266
    267     sched_dmsg("\n[INFO] %s : exit / thread %x on core[%x,%d]\n",
     267    sched_dmsg("\n[DMSG] %s : exit / thread %x on core[%x,%d]\n",
    268268    __FUNCTION__, CURRENT_THREAD->trdid , local_cxy , core->lid );
    269269
     
    279279    scheduler_t * sched   = &core->scheduler;
    280280
    281     sched_dmsg("\n[INFO] %s : thread %x on core[%x,%d] enter / cycle %d\n",
     281    sched_dmsg("\n[DMSG] %s : thread %x on core[%x,%d] enter / cycle %d\n",
    282282    __FUNCTION__, current->trdid, local_cxy, core->lid, hal_time_stamp() );
    283283
     
    304304        if( next != current )
    305305    {
    306         sched_dmsg("\n[INFO] %s : trd %x (%s) on core[%x,%d] => trd %x (%s) / cycle %d\n",
     306        sched_dmsg("\n[DMSG] %s : trd %x (%s) on core[%x,%d] => trd %x (%s) / cycle %d\n",
    307307        __FUNCTION__, current->trdid, thread_type_str(current->type), local_cxy, core->lid,
    308308        next->trdid, thread_type_str(next->type), hal_time_stamp() );
     
    331331    else
    332332    {
    333         sched_dmsg("\n[INFO] %s : thread %x on core[%x,%d] continue / cycle %d\n",
     333        sched_dmsg("\n[DMSG] %s : thread %x on core[%x,%d] continue / cycle %d\n",
    334334        __FUNCTION__, current->trdid, local_cxy, core->lid, hal_time_stamp() );
    335335    }
  • trunk/kernel/kern/signal.c

    r23 r406  
    4444                hal_atomic_or( &thread->signals , (1 << sig_id) );
    4545
    46         signal_dmsg("\n[INFO] %s : thread %x in process %x received signal %d\n",
     46        signal_dmsg("\n[DMSG] %s : thread %x in process %x received signal %d\n",
    4747                    __FUNCTION__, thread->trdid , process->pid , sig_id );
    4848        }
     
    5959        thread_s * this = CURRENT_THREAD;
    6060
    61         printk("\n[INFO] %s : threadReceived signal %d, pid %d, tid %x, core %d  [ KILLED ]\n",
     61        printk("\n[DMSG] %s : threadReceived signal %d, pid %d, tid %x, core %d  [ KILLED ]\n",
    6262               sig,
    6363               this->process->pid,
  • trunk/kernel/kern/thread.c

    r374 r406  
    221221    vseg_t       * vseg;         // stack vseg
    222222
    223     thread_dmsg("\n[INFO] %s : enters for process %x\n", __FUNCTION__ , pid );
     223    thread_dmsg("\n[DMSG] %s : enters for process %x\n", __FUNCTION__ , pid );
    224224
    225225    // get process descriptor local copy
     
    311311    }
    312312
    313     thread_dmsg("\n[INFO] %s : exit / trdid = %x / process %x / core = %d\n",
     313    thread_dmsg("\n[DMSG] %s : exit / trdid = %x / process %x / core = %d\n",
    314314                __FUNCTION__ , thread->trdid , process->pid , core_lid );
    315315
     
    328328        vseg_t       * vseg;         // stack vseg
    329329
    330     thread_dmsg("\n[INFO] %s : enters\n", __FUNCTION__ );
     330    thread_dmsg("\n[DMSG] %s : enters\n", __FUNCTION__ );
    331331
    332332    // allocate a stack from local VMM
     
    398398    }
    399399
    400     thread_dmsg("\n[INFO] %s : exit / thread %x for process %x on core %d in cluster %x\n",
     400    thread_dmsg("\n[DMSG] %s : exit / thread %x for process %x on core %d in cluster %x\n",
    401401                 __FUNCTION__, thread->trdid, process->pid, core_lid, local_cxy );
    402402
     
    416416        thread_t     * thread;       // pointer on new thread descriptor
    417417
    418     thread_dmsg("\n[INFO] %s : enter / for type %s on core[%x,%d] / cycle %d\n",
     418    thread_dmsg("\n[DMSG] %s : enter / for type %s on core[%x,%d] / cycle %d\n",
    419419    __FUNCTION__ , thread_type_str( type ) , local_cxy , core_lid , hal_time_stamp() );
    420420
     
    449449        hal_cpu_context_create( thread );
    450450
    451     thread_dmsg("\n[INFO] %s : exit / trdid = %x / type = %s / core = [%x,%d] / cycle %d\n",
     451    thread_dmsg("\n[DMSG] %s : exit / trdid = %x / type = %s / core = [%x,%d] / cycle %d\n",
    452452    __FUNCTION__ , thread->trdid , thread_type_str(type) ,
    453453    local_cxy , core_lid , hal_time_stamp() );
     
    502502    core_t     * core       = thread->core;
    503503
    504     thread_dmsg("\n[INFO] %s : enters for thread %x in process %x / type = %s\n",
     504    thread_dmsg("\n[DMSG] %s : enters for thread %x in process %x / type = %s\n",
    505505                __FUNCTION__ , thread->trdid , process->pid , thread_type_str( thread->type ) );
    506506
     
    556556        tm_end = hal_get_cycles();
    557557
    558         thread_dmsg("\n[INFO] %s : exit for thread %x in process %x / duration = %d\n",
     558        thread_dmsg("\n[DMSG] %s : exit for thread %x in process %x / duration = %d\n",
    559559                       __FUNCTION__, thread->trdid , process->pid , tm_end - tm_start );
    560560}
     
    732732    while( 1 )
    733733    {
    734         idle_dmsg("\n[INFO] %s : core[%x][%d] goes to sleep at cycle %d\n",
     734        idle_dmsg("\n[DMSG] %s : core[%x][%d] goes to sleep at cycle %d\n",
    735735                    __FUNCTION__ , local_cxy , lid , hal_get_cycles() );
    736736
     
    738738        //hal_core_sleep();
    739739
    740         idle_dmsg("\n[INFO] %s : core[%x][%d] wake up at cycle %d\n",
     740        idle_dmsg("\n[DMSG] %s : core[%x][%d] wake up at cycle %d\n",
    741741                    __FUNCTION__ , local_cxy , lid , hal_get_cycles() );
    742742
  • trunk/kernel/kern/thread.h

    r367 r406  
    158158 * This TRDID is computed by the process_register_thread() function, when the user
    159159 * thread is registered in the local copy of the process descriptor.
     160 *
     161 * WARNING : Don't modify the first 4 fields order, as this order is used by the
     162 * hal_kentry assembly code for the TSAR architecture.
    160163 **************************************************************************************/
    161164
     
    164167typedef struct thread_s
    165168{
    166     void              * cpu_uzone;       /*! used for exception/interrupt/syscall     */
    167169        void              * cpu_context;     /*! used for context switch                  */
    168170        void              * fpu_context;     /*! used for dynamic FPU allocation          */
     171
     172        intptr_t            k_stack_base;    /*! kernel stack base address                */
     173        uint32_t            k_stack_size;    /*! kernel stack size (bytes)                */
    169174
    170175        uint32_t            trdid;           /*! thread index (cxy.ltid)                  */
     
    189194        intptr_t            u_stack_base;    /*! user stack base address                  */
    190195        uint32_t            u_stack_size;    /*! user stack size (bytes)                  */
    191         intptr_t            k_stack_base;    /*! kernel stack base address                */
    192         uint32_t            k_stack_size;    /*! kernel stack size (bytes)                */
    193196
    194197    void              * entry_func;      /*! pointer on entry function                */
Note: See TracChangeset for help on using the changeset viewer.