Changeset 406 for trunk/kernel/kern
- Timestamp:
- Aug 29, 2017, 12:03:37 PM (7 years ago)
- Location:
- trunk/kernel/kern
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/cluster.c
r374 r406 82 82 spinlock_init( &cluster->kcm_lock ); 83 83 84 cluster_dmsg("\n[ INFO] %s for cluster %x enters\n",84 cluster_dmsg("\n[DMSG] %s for cluster %x enters\n", 85 85 __FUNCTION__ , local_cxy ); 86 86 … … 102 102 } 103 103 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", 105 105 __FUNCTION__ , local_cxy , hal_get_cycles() ); 106 106 … … 108 108 khm_init( &cluster->khm ); 109 109 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", 111 111 __FUNCTION__ , local_cxy , hal_get_cycles() ); 112 112 … … 114 114 kcm_init( &cluster->kcm , KMEM_KCM ); 115 115 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", 117 117 __FUNCTION__ , local_cxy , hal_get_cycles() ); 118 118 … … 125 125 } 126 126 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", 128 128 __FUNCTION__ , local_cxy , hal_get_cycles() ); 129 129 … … 132 132 cluster->rpc_threads = 0; 133 133 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", 135 135 __FUNCTION__ , local_cxy , hal_get_cycles() ); 136 136 … … 157 157 } 158 158 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", 160 160 __FUNCTION__ , local_cxy , hal_get_cycles() ); 161 161 -
trunk/kernel/kern/core.c
r380 r406 113 113 if( (ticks % CONFIG_SCHED_TICKS_PER_QUANTUM) == 0 ) sched_yield( NULL ); 114 114 115 // update DQDT TODO This update should depend on the cluster identifier, 116 // to avoid simultaneous updates from various clusters ... AG 115 // update DQDT 117 116 if( ((ticks % CONFIG_DQDT_TICKS_PER_QUANTUM) == 0) && (core->lid == 0) ) 118 117 dqdt_global_update(); -
trunk/kernel/kern/do_syscall.c
r375 r406 116 116 } 117 117 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" 119 119 " arg0 = %x / arg1 = %x / arg2 = %x / arg3 = %x\n", 120 120 __FUNCTION__ , this->process->pid , this->trdid , service_num , -
trunk/kernel/kern/dqdt.c
r374 r406 60 60 for ( i = 0 ; i < 4 ; i++ ) 61 61 { 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] ); 63 64 } 64 65 } … … 70 71 uint32_t y_width ) 71 72 { 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"); 76 74 77 75 dqdt_node_t * node; -
trunk/kernel/kern/kernel_init.c
r401 r406 137 137 " /_/ \\_\\ |______| |_| |_| \\_____/ |______/ |_| |_| |_| \\_\\ |_| |_| \n" 138 138 "\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 ); 140 140 } 141 141 … … 274 274 275 275 #if( CONFIG_KINIT_DEBUG > 1 ) 276 printk("\n[ INFO] %s : created MMC in cluster %x / chdev = %x\n",276 printk("\n[DMSG] %s : created MMC in cluster %x / chdev = %x\n", 277 277 __FUNCTION__ , channel , local_cxy , chdev_ptr ); 278 278 #endif … … 302 302 303 303 #if( CONFIG_KINIT_DEBUG > 1 ) 304 printk("\n[ INFO] %s : created DMA[%d] in cluster %x / chdev = %x\n",304 printk("\n[DMSG] %s : created DMA[%d] in cluster %x / chdev = %x\n", 305 305 __FUNCTION__ , channel , local_cxy , chdev_ptr ); 306 306 #endif … … 436 436 437 437 #if( CONFIG_KINIT_DEBUG > 1 ) 438 printk("\n[ INFO] %s : create chdev %s[%d] in cluster %x / chdev = %x\n",438 printk("\n[DMSG] %s : create chdev %s[%d] in cluster %x / chdev = %x\n", 439 439 __FUNCTION__ , chdev_func_str( func ), channel , local_cxy , chdev ); 440 440 #endif … … 554 554 555 555 #if( CONFIG_KINIT_DEBUG > 1 ) 556 printk("\n[ INFO] %s created PIC chdev in cluster %x at cycle %d\n",556 printk("\n[DMSG] %s created PIC chdev in cluster %x at cycle %d\n", 557 557 __FUNCTION__ , local_cxy , (uint32_t)hal_time_stamp() ); 558 558 #endif … … 728 728 729 729 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", 731 731 __FUNCTION__, hal_time_stamp() ); 732 732 … … 762 762 763 763 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", 765 765 __FUNCTION__, hal_time_stamp() ); 766 766 … … 787 787 788 788 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", 790 790 __FUNCTION__, hal_time_stamp() ); 791 791 … … 818 818 819 819 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", 821 821 __FUNCTION__, hal_time_stamp()); 822 822 … … 829 829 ///////////////////////////////////////////////////////////////////////////////// 830 830 831 #if ( CONFIG_KINIT_DEBUG > 1 )831 #if CONFIG_KINIT_DEBUG 832 832 chdev_dir_display(); 833 833 #endif … … 856 856 core->scheduler.idle = thread; 857 857 858 #if ( CONFIG_KINIT_DEBUG > 1 )858 #if CONFIG_KINIT_DEBUG 859 859 sched_display(); 860 860 #endif … … 928 928 929 929 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", 931 931 __FUNCTION__, vfs_root_inode_xp , hal_time_stamp()); 932 932 … … 987 987 988 988 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", 990 990 __FUNCTION__, vfs_root_inode_xp , hal_time_stamp() ); 991 991 … … 1020 1020 1021 1021 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", 1023 1023 __FUNCTION__, devfs_dev_inode_xp , hal_time_stamp() ); 1024 1024 … … 1057 1057 1058 1058 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", 1060 1060 __FUNCTION__, devfs_dev_inode_xp , hal_time_stamp() ); 1061 1061 … … 1076 1076 1077 1077 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", 1079 1079 __FUNCTION__ , hal_time_stamp() ); 1080 1080 … … 1087 1087 print_banner( (info->x_size * info->y_size) , info->cores_nr ); 1088 1088 1089 #if CONFIG_KINIT_DEBUG 1090 1089 1091 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" 1092 1094 " - thread descriptor : %d bytes\n" 1093 1095 " - process descriptor : %d bytes\n" … … 1130 1132 sizeof( rwlock_t ), 1131 1133 sizeof( remote_rwlock_t )); 1134 #endif 1135 1132 1136 } 1133 1137 -
trunk/kernel/kern/printk.c
r372 r406 327 327 case ('l'): /* 64 bits hexadecimal unsigned */ 328 328 { 329 u int64_t val = va_arg( *args , uint64_t);329 unsigned long long val = va_arg( *args , unsigned long long ); 330 330 txt_write( channel, busy, "0x" , 2 ); 331 331 for(i = 0; i < 16; i++) … … 340 340 case ('L'): /* 64 bits hexadecimal unsigned on 18 char */ 341 341 { 342 u int64_t val = va_arg( *args , uint64_t);342 unsigned long long val = va_arg( *args , unsigned long long ); 343 343 txt_write( channel, busy, "0x" , 2 ); 344 344 for(i = 0; i < 16; i++) -
trunk/kernel/kern/printk.h
r389 r406 109 109 110 110 #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__) 112 112 #else 113 113 #define cluster_dmsg(...) … … 115 115 116 116 #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__) 118 118 #else 119 119 #define context_dmsg(...) … … 121 121 122 122 #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__) 124 124 #else 125 125 #define core_dmsg(...) … … 127 127 128 128 #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__) 130 130 #else 131 131 #define devfs_dmsg(...) … … 133 133 134 134 #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__) 136 136 #else 137 137 #define dma_dmsg(...) … … 139 139 140 140 #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__) 148 142 #else 149 143 #define dqdt_dmsg(...) … … 151 145 152 146 #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__) 154 148 #else 155 149 #define elf_dmsg(...) … … 157 151 158 152 #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__) 160 154 #else 161 155 #define exec_dmsg(...) 162 156 #endif 163 157 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 164 164 #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__) 166 166 #else 167 167 #define fatfs_dmsg(...) … … 169 169 170 170 #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__) 172 172 #else 173 173 #define fbf_dmsg(...) … … 175 175 176 176 #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__) 178 178 #else 179 179 #define fork_dmsg(...) 180 180 #endif 181 181 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 182 188 #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__) 184 190 #else 185 191 #define idle_dmsg(...) … … 193 199 194 200 #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__) 196 202 #else 197 203 #define irq_dmsg(...) … … 199 205 200 206 #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__) 202 208 #else 203 209 #define kcm_dmsg(...) … … 205 211 206 212 #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__) 208 214 #else 209 215 #define khm_dmsg(...) … … 211 217 212 218 #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__) 214 220 #else 215 221 #define kinit_dmsg(...) … … 217 223 218 224 #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__) 220 226 #else 221 227 #define kmem_dmsg(...) … … 223 229 224 230 #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__) 226 232 #else 227 233 #define mapper_dmsg(...) … … 229 235 230 236 #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__) 232 238 #else 233 239 #define mmc_dmsg(...) … … 235 241 236 242 #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__) 238 244 #else 239 245 #define nic_dmsg(...) … … 241 247 242 248 #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__) 244 250 #else 245 251 #define pic_dmsg(...) … … 247 253 248 254 #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__) 250 256 #else 251 257 #define ppm_dmsg(...) … … 253 259 254 260 #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__) 256 262 #else 257 263 #define process_dmsg(...) … … 264 270 #endif 265 271 266 #if CONFIG_RPCG_DEBUG267 #define rpcg_dmsg(...) printk(__VA_ARGS__)268 #else269 #define rpcg_dmsg(...)270 #endif271 272 272 #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__) 274 274 #else 275 275 #define sched_dmsg(...) … … 277 277 278 278 #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__) 280 280 #else 281 281 #define signal_dmsg(...) … … 283 283 284 284 #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__) 286 286 #else 287 287 #define syscall_dmsg(...) … … 289 289 290 290 #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__) 292 292 #else 293 293 #define thread_dmsg(...) … … 295 295 296 296 #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__) 298 298 #else 299 299 #define txt_dmsg(...) … … 307 307 308 308 #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__) 310 310 #else 311 311 #define vmm_dmsg(...) -
trunk/kernel/kern/process.c
r380 r406 90 90 pid_t parent_pid; 91 91 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 ); 94 94 95 95 // get parent process cluster, local pointer, and pid … … 116 116 process->ppid = parent_pid; 117 117 118 // resetreference process vmm (not for kernel process)118 // initialize reference process vmm (not for kernel process) 119 119 if( pid ) vmm_init( process ); 120 120 … … 169 169 hal_fence(); 170 170 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", 172 172 __FUNCTION__ , pid ); 173 173 … … 198 198 local_process->ref_xp = reference_process_xp; 199 199 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", 201 201 __FUNCTION__ , local_process->pid ); 202 202 … … 233 233 hal_fence(); 234 234 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", 236 236 __FUNCTION__ , local_process->pid ); 237 237 … … 288 288 vmm_destroy( process ); 289 289 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", 291 291 __FUNCTION__ , process->pid, process->vmm.pgfault_nr ); 292 292 } … … 627 627 parent_pid = hal_remote_lw( XPTR( parent_cxy , &parent_ptr->pid ) ); 628 628 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", 630 630 __FUNCTION__, CURRENT_THREAD->trdid, local_cxy, CURRENT_THREAD->core->lid , path ); 631 631 … … 654 654 process_reference_init( process , pid , parent_xp ); 655 655 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", 657 657 __FUNCTION__, CURRENT_THREAD->trdid, local_cxy, CURRENT_THREAD->core->lid, pid, path ); 658 658 … … 670 670 XPTR( parent_cxy , &parent_ptr->fd_array) ); 671 671 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", 673 673 __FUNCTION__, parent_pid , pid ); 674 674 … … 688 688 } 689 689 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", 691 691 __FUNCTION__ , pid , path ); 692 692 … … 714 714 } 715 715 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", 717 717 __FUNCTION__ , pid , core->lid , local_cxy ); 718 719 #if CONFIG_EXEC_DEBUG 720 if( 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 718 726 719 727 // update children list in parent process … … 725 733 thread_unblock( XPTR( local_cxy , thread ) , THREAD_BLOCKED_GLOBAL ); 726 734 727 exec_dmsg("\n[ INFO] %s : exit for process %x\n",735 exec_dmsg("\n[DMSG] %s : exit for process %x\n", 728 736 __FUNCTION__, process->pid ); 729 737 … … 747 755 uint32_t stderr_id; 748 756 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 ); 750 758 751 759 // open stdin / stdout / stderr pseudo-files … … 771 779 assert( (error1 == 0) , __FUNCTION__ , "cannot create process_init\n"); 772 780 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 ); 774 782 775 783 hal_fence(); -
trunk/kernel/kern/rpc.c
r389 r406 97 97 page_t ** page ) // out 98 98 { 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", 100 100 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 101 101 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 117 117 *page = (page_t *)(intptr_t)rpc.args[1]; 118 118 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", 120 120 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 121 121 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 125 125 void rpc_pmem_get_pages_server( xptr_t xp ) 126 126 { 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", 128 128 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 129 129 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 142 142 hal_remote_swd( XPTR( cxy , &desc->args[1] ) , (uint64_t)(intptr_t)page ); 143 143 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", 145 145 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 146 146 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 157 157 pid_t * pid ) // out 158 158 { 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", 160 160 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 161 161 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 178 178 *error = (error_t)rpc.args[2]; 179 179 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", 181 181 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 182 182 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 190 190 pid_t pid; // output : process identifier 191 191 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", 193 193 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 194 194 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 209 209 hal_remote_sw( XPTR( client_cxy , &desc->args[1] ) , (uint64_t)pid ); 210 210 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", 212 212 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 213 213 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 224 224 error_t * error ) // out 225 225 { 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", 227 227 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 228 228 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 244 244 *error = (error_t)rpc.args[1]; 245 245 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", 247 247 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 248 248 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 256 256 error_t error; // local error error status 257 257 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", 259 259 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 260 260 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 278 278 hal_remote_swd( XPTR( client_cxy , &desc->args[1] ) , (uint64_t)error ); 279 279 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", 281 281 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 282 282 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 291 291 void rpc_process_kill_client( process_t * process ) 292 292 { 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", 294 294 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 295 295 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 325 325 } 326 326 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", 328 328 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 329 329 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 336 336 process_t * process; 337 337 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", 339 339 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 340 340 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 360 360 } 361 361 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", 363 363 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 364 364 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 379 379 error_t * error ) // out 380 380 { 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", 382 382 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 383 383 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 403 403 *error = (error_t)rpc.args[5]; 404 404 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", 406 406 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 407 407 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 421 421 error_t error; 422 422 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", 424 424 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 425 425 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 456 456 hal_remote_swd( XPTR( client_cxy , &desc->args[2] ) , (uint64_t)thread_xp ); 457 457 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", 459 459 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 460 460 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 473 473 error_t * error ) // out 474 474 { 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", 476 476 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 477 477 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 496 496 *error = (error_t)rpc.args[4]; 497 497 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", 499 499 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 500 500 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 509 509 error_t error; 510 510 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", 512 512 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 513 513 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 533 533 hal_remote_swd( XPTR( client_cxy , &desc->args[2] ) , (uint64_t)thread_xp ); 534 534 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", 536 536 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 537 537 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 547 547 uint32_t sig_id ) // in 548 548 { 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", 550 550 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 551 551 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 565 565 rpc_send_sync( cxy , &rpc ); 566 566 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", 568 568 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 569 569 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 576 576 uint32_t sig_id; // signal index 577 577 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", 579 579 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 580 580 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 591 591 signal_rise( process , sig_id ); 592 592 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", 594 594 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 595 595 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 613 613 error_t * error ) // out 614 614 { 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", 616 616 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 617 617 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 641 641 *error = (error_t)rpc.args[9]; 642 642 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", 644 644 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 645 645 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 660 660 error_t error; 661 661 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", 663 663 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 664 664 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 693 693 hal_remote_swd( XPTR( client_cxy , &desc->args[9] ) , (uint64_t)error ); 694 694 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", 696 696 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 697 697 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 706 706 struct vfs_inode_s * inode ) 707 707 { 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", 709 709 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 710 710 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 723 723 rpc_send_sync( cxy , &rpc ); 724 724 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", 726 726 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 727 727 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 733 733 vfs_inode_t * inode; 734 734 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", 736 736 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 737 737 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 747 747 vfs_inode_destroy( inode ); 748 748 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", 750 750 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 751 751 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 764 764 error_t * error ) // out 765 765 { 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", 767 767 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 768 768 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 787 787 *error = (error_t)rpc.args[4]; 788 788 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", 790 790 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 791 791 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 803 803 char name_copy[CONFIG_VFS_MAX_NAME_LENGTH]; 804 804 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", 806 806 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 807 807 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 829 829 hal_remote_swd( XPTR( client_cxy , &desc->args[4] ) , (uint64_t)error ); 830 830 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", 832 832 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 833 833 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 843 843 vfs_dentry_t * dentry ) 844 844 { 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", 846 846 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 847 847 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 860 860 rpc_send_sync( cxy , &rpc ); 861 861 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", 863 863 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 864 864 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 870 870 vfs_dentry_t * dentry; 871 871 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", 873 873 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 874 874 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 884 884 vfs_dentry_destroy( dentry ); 885 885 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", 887 887 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 888 888 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 901 901 error_t * error ) // out 902 902 { 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", 904 904 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 905 905 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 923 923 *error = (error_t)rpc.args[3]; 924 924 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", 926 926 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 927 927 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 936 936 error_t error; 937 937 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", 939 939 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 940 940 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 957 957 hal_remote_swd( XPTR( client_cxy , &desc->args[3] ) , (uint64_t)error ); 958 958 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", 960 960 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 961 961 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 970 970 vfs_file_t * file ) 971 971 { 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", 973 973 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 974 974 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 987 987 rpc_send_sync( cxy , &rpc ); 988 988 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", 990 990 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 991 991 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 997 997 vfs_file_t * file; 998 998 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", 1000 1000 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1001 1001 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1011 1011 vfs_file_destroy( file ); 1012 1012 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", 1014 1014 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1015 1015 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1027 1027 error_t * error ) // out 1028 1028 { 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", 1030 1030 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1031 1031 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1049 1049 *error = (error_t)rpc.args[3]; 1050 1050 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", 1052 1052 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1053 1053 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1064 1064 char name_copy[CONFIG_VFS_MAX_NAME_LENGTH]; 1065 1065 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", 1067 1067 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1068 1068 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1087 1087 hal_remote_swd( XPTR( client_cxy , &desc->args[3] ) , (uint64_t)error ); 1088 1088 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", 1090 1090 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1091 1091 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1101 1101 error_t * error ) // out 1102 1102 { 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", 1104 1104 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1105 1105 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1121 1121 *error = (error_t)rpc.args[1]; 1122 1122 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", 1124 1124 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1125 1125 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1132 1132 vfs_inode_t * inode; 1133 1133 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", 1135 1135 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1136 1136 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1149 1149 hal_remote_swd( XPTR( client_cxy , &desc->args[1] ) , (uint64_t)error ); 1150 1150 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", 1152 1152 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1153 1153 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1166 1166 error_t * error ) // out 1167 1167 { 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", 1169 1169 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1170 1170 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1189 1189 *error = (error_t)rpc.args[4]; 1190 1190 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", 1192 1192 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1193 1193 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1203 1203 error_t error; 1204 1204 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", 1206 1206 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1207 1207 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1223 1223 hal_remote_swd( XPTR( client_cxy , &desc->args[4] ) , (uint64_t)error ); 1224 1224 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", 1226 1226 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1227 1227 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1239 1239 error_t * error ) // out 1240 1240 { 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", 1242 1242 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1243 1243 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1261 1261 *error = (error_t)rpc.args[3]; 1262 1262 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", 1264 1264 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1265 1265 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1275 1275 error_t error; 1276 1276 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", 1278 1278 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1279 1279 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1295 1295 hal_remote_swd( XPTR( client_cxy , &desc->args[3] ) , (uint64_t)error ); 1296 1296 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", 1298 1298 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1299 1299 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1313 1313 error_t * error ) // out 1314 1314 { 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", 1316 1316 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1317 1317 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1336 1336 *error = (error_t)rpc.args[4]; 1337 1337 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", 1339 1339 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1340 1340 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1350 1350 error_t error; 1351 1351 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", 1353 1353 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1354 1354 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1370 1370 hal_remote_swd( XPTR( client_cxy , &desc->args[4] ) , (uint64_t)error ); 1371 1371 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", 1373 1373 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1374 1374 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1384 1384 xptr_t * buf_xp ) // out 1385 1385 { 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", 1387 1387 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1388 1388 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1404 1404 *buf_xp = (xptr_t)rpc.args[1]; 1405 1405 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", 1407 1407 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1408 1408 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1412 1412 void rpc_kcm_alloc_server( xptr_t xp ) 1413 1413 { 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", 1415 1415 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1416 1416 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1433 1433 hal_remote_swd( XPTR( client_cxy , &desc->args[1] ) , (uint64_t)buf_xp ); 1434 1434 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", 1436 1436 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1437 1437 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1447 1447 uint32_t kmem_type ) // in 1448 1448 { 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", 1450 1450 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1451 1451 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1465 1465 rpc_send_sync( cxy , &rpc ); 1466 1466 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", 1468 1468 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1469 1469 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1473 1473 void rpc_kcm_free_server( xptr_t xp ) 1474 1474 { 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", 1476 1476 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1477 1477 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1491 1491 kmem_free( &req ); 1492 1492 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", 1494 1494 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1495 1495 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1510 1510 error_t * error ) // out 1511 1511 { 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", 1513 1513 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1514 1514 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1535 1535 *error = (error_t)rpc.args[6]; 1536 1536 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", 1538 1538 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1539 1539 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1552 1552 error_t error; 1553 1553 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", 1555 1555 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1556 1556 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1592 1592 hal_remote_swd( XPTR( client_cxy , &desc->args[6] ) , (uint64_t)error ); 1593 1593 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", 1595 1595 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1596 1596 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1607 1607 page_t ** page ) // out 1608 1608 { 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", 1610 1610 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1611 1611 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1628 1628 *page = (page_t *)(intptr_t)rpc.args[2]; 1629 1629 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", 1631 1631 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1632 1632 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1636 1636 void rpc_mapper_get_page_server( xptr_t xp ) 1637 1637 { 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", 1639 1639 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1640 1640 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1654 1654 hal_remote_swd( XPTR( cxy , &desc->args[1] ) , (uint64_t)(intptr_t)page ); 1655 1655 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", 1657 1657 __FUNCTION__ , CURRENT_THREAD->trdid , local_cxy, 1658 1658 CURRENT_THREAD->core->lid , hal_time_stamp() ); … … 1673 1673 reg_t sr_save; 1674 1674 1675 rpc g_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", 1676 1676 __FUNCTION__ , local_cxy , server_cxy , hal_time_stamp() ); 1677 1677 … … 1700 1700 while( error ); 1701 1701 1702 rpc g_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", 1703 1703 __FUNCTION__ , desc_xp , server_cxy , hal_time_stamp() ); 1704 1704 … … 1714 1714 dev_pic_send_ipi( server_cxy , 0 ); 1715 1715 1716 rpc g_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", 1717 1717 __FUNCTION__, local_cxy , server_cxy ); 1718 1718 } … … 1729 1729 hal_restore_irq( sr_save ); 1730 1730 1731 rpc g_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", 1732 1732 __FUNCTION__ , local_cxy , server_cxy , hal_time_stamp() ); 1733 1733 … … 1764 1764 count = 0; 1765 1765 1766 rpc g_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", 1767 1767 __FUNCTION__, this->trdid, local_cxy, core->lid , hal_time_stamp() ); 1768 1768 … … 1781 1781 index = hal_remote_lw( XPTR( client_cxy , &desc->index ) ); 1782 1782 1783 rpc g_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", 1784 1784 __FUNCTION__ , this->trdid , core->lid , local_cxy , index ); 1785 1785 … … 1850 1850 thread->blocked = 0; 1851 1851 1852 rpc g_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", 1853 1853 __FUNCTION__ , thread , core->gid , local_cxy , hal_time_stamp() ); 1854 1854 } … … 1875 1875 hal_atomic_add( &LOCAL_CLUSTER->rpc_threads , 1 ); 1876 1876 1877 rpc g_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", 1878 1878 __FUNCTION__ , thread->trdid, local_cxy, core->lid, hal_time_stamp() ); 1879 1879 } … … 1900 1900 error_t error; 1901 1901 1902 rpc g_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", 1903 1903 __FUNCTION__ , this->trdid , local_cxy , hal_time_stamp() ); 1904 1904 … … 1906 1906 if( (rpc_fifo->owner != 0) || (local_fifo_is_empty( &rpc_fifo->fifo )) ) 1907 1907 { 1908 rpc g_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", 1909 1909 __FUNCTION__ , this->trdid , local_cxy , hal_time_stamp() ); 1910 1910 … … 1926 1926 } 1927 1927 1928 rpc g_dmsg("\n[INFO] %s : exit after RPC thread activation / "1928 rpc_dmsg("\n[DMSG] %s : exit after RPC thread activation / " 1929 1929 "thread %x / cluster %x / cycle %d\n", 1930 1930 __FUNCTION__ , this->trdid , local_cxy , hal_time_stamp() ); … … 1934 1934 else // light lock taken by another thread 1935 1935 { 1936 rpc g_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", 1937 1937 __FUNCTION__ , this->trdid , local_cxy , hal_time_stamp() ); 1938 1938 … … 1951 1951 rpc_fifo_t * rpc_fifo = &LOCAL_CLUSTER->rpc_fifo; 1952 1952 1953 rpc g_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", 1954 1954 __FUNCTION__, this->trdid, local_cxy, this->core->lid, hal_time_stamp() ); 1955 1955 … … 1975 1975 if( LOCAL_CLUSTER->rpc_threads >= CONFIG_RPC_THREADS_MAX ) 1976 1976 { 1977 rpc g_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", 1978 1978 __FUNCTION__, this->trdid, local_cxy, this->core->lid, hal_time_stamp() ); 1979 1979 … … 1986 1986 else 1987 1987 { 1988 rpc g_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", 1989 1989 __FUNCTION__, this->trdid, local_cxy, this->core->lid, hal_time_stamp() ); 1990 1990 … … 1992 1992 sched_yield( NULL ); 1993 1993 1994 rpc g_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", 1995 1995 __FUNCTION__, this->trdid, local_cxy, this->core->lid, hal_time_stamp() ); 1996 1996 } -
trunk/kernel/kern/scheduler.c
r374 r406 154 154 scheduler_t * sched = &core->scheduler; 155 155 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", 157 157 __FUNCTION__ , local_cxy , core->lid , hal_time_stamp() ); 158 158 … … 185 185 spinlock_unlock( &sched->lock ); 186 186 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", 188 188 __FUNCTION__ , local_cxy , core->lid , thread->trdid , hal_time_stamp() ); 189 189 … … 216 216 spinlock_unlock( &sched->lock ); 217 217 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", 219 219 __FUNCTION__ , local_cxy , core->lid , thread->trdid , hal_time_stamp() ); 220 220 return thread; … … 227 227 spinlock_unlock( &sched->lock ); 228 228 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", 230 230 __FUNCTION__ , local_cxy , core->lid , sched->idle->trdid , hal_time_stamp() ); 231 231 … … 242 242 scheduler_t * sched = &core->scheduler; 243 243 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", 245 245 __FUNCTION__, CURRENT_THREAD->trdid , local_cxy , core->lid ); 246 246 … … 265 265 spinlock_unlock( &sched->lock ); 266 266 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", 268 268 __FUNCTION__, CURRENT_THREAD->trdid , local_cxy , core->lid ); 269 269 … … 279 279 scheduler_t * sched = &core->scheduler; 280 280 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", 282 282 __FUNCTION__, current->trdid, local_cxy, core->lid, hal_time_stamp() ); 283 283 … … 304 304 if( next != current ) 305 305 { 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", 307 307 __FUNCTION__, current->trdid, thread_type_str(current->type), local_cxy, core->lid, 308 308 next->trdid, thread_type_str(next->type), hal_time_stamp() ); … … 331 331 else 332 332 { 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", 334 334 __FUNCTION__, current->trdid, local_cxy, core->lid, hal_time_stamp() ); 335 335 } -
trunk/kernel/kern/signal.c
r23 r406 44 44 hal_atomic_or( &thread->signals , (1 << sig_id) ); 45 45 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", 47 47 __FUNCTION__, thread->trdid , process->pid , sig_id ); 48 48 } … … 59 59 thread_s * this = CURRENT_THREAD; 60 60 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", 62 62 sig, 63 63 this->process->pid, -
trunk/kernel/kern/thread.c
r374 r406 221 221 vseg_t * vseg; // stack vseg 222 222 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 ); 224 224 225 225 // get process descriptor local copy … … 311 311 } 312 312 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", 314 314 __FUNCTION__ , thread->trdid , process->pid , core_lid ); 315 315 … … 328 328 vseg_t * vseg; // stack vseg 329 329 330 thread_dmsg("\n[ INFO] %s : enters\n", __FUNCTION__ );330 thread_dmsg("\n[DMSG] %s : enters\n", __FUNCTION__ ); 331 331 332 332 // allocate a stack from local VMM … … 398 398 } 399 399 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", 401 401 __FUNCTION__, thread->trdid, process->pid, core_lid, local_cxy ); 402 402 … … 416 416 thread_t * thread; // pointer on new thread descriptor 417 417 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", 419 419 __FUNCTION__ , thread_type_str( type ) , local_cxy , core_lid , hal_time_stamp() ); 420 420 … … 449 449 hal_cpu_context_create( thread ); 450 450 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", 452 452 __FUNCTION__ , thread->trdid , thread_type_str(type) , 453 453 local_cxy , core_lid , hal_time_stamp() ); … … 502 502 core_t * core = thread->core; 503 503 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", 505 505 __FUNCTION__ , thread->trdid , process->pid , thread_type_str( thread->type ) ); 506 506 … … 556 556 tm_end = hal_get_cycles(); 557 557 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", 559 559 __FUNCTION__, thread->trdid , process->pid , tm_end - tm_start ); 560 560 } … … 732 732 while( 1 ) 733 733 { 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", 735 735 __FUNCTION__ , local_cxy , lid , hal_get_cycles() ); 736 736 … … 738 738 //hal_core_sleep(); 739 739 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", 741 741 __FUNCTION__ , local_cxy , lid , hal_get_cycles() ); 742 742 -
trunk/kernel/kern/thread.h
r367 r406 158 158 * This TRDID is computed by the process_register_thread() function, when the user 159 159 * 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. 160 163 **************************************************************************************/ 161 164 … … 164 167 typedef struct thread_s 165 168 { 166 void * cpu_uzone; /*! used for exception/interrupt/syscall */167 169 void * cpu_context; /*! used for context switch */ 168 170 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) */ 169 174 170 175 uint32_t trdid; /*! thread index (cxy.ltid) */ … … 189 194 intptr_t u_stack_base; /*! user stack base address */ 190 195 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) */193 196 194 197 void * entry_func; /*! pointer on entry function */
Note: See TracChangeset
for help on using the changeset viewer.