Changeset 614 for trunk/kernel/fs/devfs.c
- Timestamp:
- Jan 15, 2019, 1:59:32 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/fs/devfs.c
r612 r614 110 110 assert( (error == 0) , "cannot create <dev>\n" ); 111 111 112 #if DEBUG_DEVFS_ INIT112 #if DEBUG_DEVFS_GLOBAL_INIT 113 113 uint32_t cycle = (uint32_t)hal_get_cycles(); 114 114 thread_t * this = CURRENT_THREAD; 115 if( DEBUG_DEVFS_ INIT < cycle )115 if( DEBUG_DEVFS_GLOBAL_INIT < cycle ) 116 116 printk("\n[%s] thread[%x,%x] created <dev> inode / cycle %d\n", 117 117 __FUNCTION__, this->process->pid, this->trdid, cycle ); … … 134 134 assert( (error == 0) , "cannot create <external>\n" ); 135 135 136 #if DEBUG_DEVFS_ INIT137 cycle = (uint32_t)hal_get_cycles(); 138 if( DEBUG_DEVFS_ INIT < cycle )136 #if DEBUG_DEVFS_GLOBAL_INIT 137 cycle = (uint32_t)hal_get_cycles(); 138 if( DEBUG_DEVFS_GLOBAL_INIT < cycle ) 139 139 printk("\n[%s] thread[%x,%x] created <external> inode / cycle %d\n", 140 140 __FUNCTION__, this->process->pid, this->trdid, cycle ); … … 159 159 error_t error; 160 160 161 #if DEBUG_DEVFS_LOCAL_INIT 162 uint32_t cycle = (uint32_t)hal_get_cycles(); 163 thread_t * this = CURRENT_THREAD; 164 if( DEBUG_DEVFS_LOCAL_INIT < cycle ) 165 printk("\n[%s] thread[%x,%x] enter / cycle %d\n", 166 __FUNCTION__, this->process->pid, this->trdid, cycle ); 167 #endif 168 161 169 // create "internal" directory 162 170 snprintf( node_name , 16 , "internal_%x" , local_cxy ); … … 177 185 assert( (error == 0) , "cannot create <external>\n" ); 178 186 179 #if DEBUG_DEVFS_INIT 180 uint32_t cycle = (uint32_t)hal_get_cycles(); 181 thread_t * this = CURRENT_THREAD; 182 if( DEBUG_DEVFS_INIT < cycle ) 187 #if DEBUG_DEVFS_LOCAL_INIT 188 cycle = (uint32_t)hal_get_cycles(); 189 if( DEBUG_DEVFS_LOCAL_INIT < cycle ) 183 190 printk("\n[%s] thread[%x,%x] created <%s> inode in cluster %x / cycle %d\n", 184 191 __FUNCTION__, this->process->pid, this->trdid, node_name, local_cxy, cycle ); … … 209 216 hal_remote_spt( XPTR( inode_cxy , &inode_ptr->extend ) , chdev_ptr ); 210 217 211 #if DEBUG_DEVFS_ INIT212 cycle = (uint32_t)hal_get_cycles(); 213 if( DEBUG_DEVFS_ INIT < cycle )218 #if DEBUG_DEVFS_LOCAL_INIT 219 cycle = (uint32_t)hal_get_cycles(); 220 if( DEBUG_DEVFS_LOCAL_INIT < cycle ) 214 221 printk("\n[%s] thread[%x,%x] created <mmc> inode in cluster %x\n", 215 222 __FUNCTION__, this->process->pid, this->trdid, local_cxy, cycle ); … … 244 251 hal_remote_spt( XPTR( inode_cxy , &inode_ptr->extend ) , chdev_ptr ); 245 252 246 #if DEBUG_DEVFS_ INIT247 cycle = (uint32_t)hal_get_cycles(); 248 if( DEBUG_DEVFS_ INIT < cycle )253 #if DEBUG_DEVFS_LOCAL_INIT 254 cycle = (uint32_t)hal_get_cycles(); 255 if( DEBUG_DEVFS_LOCAL_INIT < cycle ) 249 256 printk("\n[%s] thread [%x,%x] created <dma[%d]> inode in cluster %x\n", 250 257 __FUNCTION__, this->process->pid, this->trdid, channel, local_cxy, cycle ); … … 277 284 hal_remote_spt( XPTR( inode_cxy , &inode_ptr->extend ) , chdev_ptr ); 278 285 279 #if DEBUG_DEVFS_ INIT280 cycle = (uint32_t)hal_get_cycles(); 281 if( DEBUG_DEVFS_ INIT < cycle )286 #if DEBUG_DEVFS_LOCAL_INIT 287 cycle = (uint32_t)hal_get_cycles(); 288 if( DEBUG_DEVFS_LOCAL_INIT < cycle ) 282 289 printk("\n[%s] thread[%x,%x] created <iob> inode in cluster %x\n", 283 290 __FUNCTION__, this->process->pid, this->trdid, local_cxy, cycle ); … … 310 317 hal_remote_spt( XPTR( inode_cxy , &inode_ptr->extend ) , chdev_ptr ); 311 318 312 #if DEBUG_DEVFS_ INIT313 cycle = (uint32_t)hal_get_cycles(); 314 if( DEBUG_DEVFS_ INIT < cycle )319 #if DEBUG_DEVFS_LOCAL_INIT 320 cycle = (uint32_t)hal_get_cycles(); 321 if( DEBUG_DEVFS_LOCAL_INIT < cycle ) 315 322 printk("\n[%s] thread[%x,%x] created <pic> inode in cluster %x\n", 316 323 __FUNCTION__, this->process->pid, this->trdid, local_cxy, cycle ); … … 345 352 hal_remote_spt( XPTR( inode_cxy , &inode_ptr->extend ) , chdev_ptr ); 346 353 347 #if DEBUG_DEVFS_ INIT348 cycle = (uint32_t)hal_get_cycles(); 349 if( DEBUG_DEVFS_ INIT < cycle )354 #if DEBUG_DEVFS_LOCAL_INIT 355 cycle = (uint32_t)hal_get_cycles(); 356 if( DEBUG_DEVFS_LOCAL_INIT < cycle ) 350 357 printk("\n[%s] thread[%x,%x] created <txt_rx[%d]> inode in cluster %x\n", 351 358 __FUNCTION__, this->process->pid, this->trdid, channel, local_cxy, cycle ); … … 381 388 hal_remote_spt( XPTR( inode_cxy , &inode_ptr->extend ) , chdev_ptr ); 382 389 383 #if DEBUG_DEVFS_ INIT384 cycle = (uint32_t)hal_get_cycles(); 385 if( DEBUG_DEVFS_ INIT < cycle )390 #if DEBUG_DEVFS_LOCAL_INIT 391 cycle = (uint32_t)hal_get_cycles(); 392 if( DEBUG_DEVFS_LOCAL_INIT < cycle ) 386 393 printk("\n[%s] thread[%x,%x] created <txt_tx[%d]> inode in cluster %x\n", 387 394 __FUNCTION__, this->process->pid, this->trdid, channel, local_cxy, cycle ); … … 417 424 hal_remote_spt( XPTR( inode_cxy , &inode_ptr->extend ) , chdev_ptr ); 418 425 419 #if DEBUG_DEVFS_ INIT420 cycle = (uint32_t)hal_get_cycles(); 421 if( DEBUG_DEVFS_ INIT < cycle )426 #if DEBUG_DEVFS_LOCAL_INIT 427 cycle = (uint32_t)hal_get_cycles(); 428 if( DEBUG_DEVFS_LOCAL_INIT < cycle ) 422 429 printk("\n[%s] thread[%x,%x] created <ioc[%d]> inode in cluster %x\n", 423 430 __FUNCTION__, this->process->pid, this->trdid, channel, local_cxy, cycle ); … … 453 460 hal_remote_spt( XPTR( inode_cxy , &inode_ptr->extend ) , chdev_ptr ); 454 461 455 #if DEBUG_DEVFS_ INIT456 cycle = (uint32_t)hal_get_cycles(); 457 if( DEBUG_DEVFS_ INIT < cycle )462 #if DEBUG_DEVFS_LOCAL_INIT 463 cycle = (uint32_t)hal_get_cycles(); 464 if( DEBUG_DEVFS_LOCAL_INIT < cycle ) 458 465 printk("\n[%s] thread[%x,%x] created <fbf[%d]> inode in cluster %x\n", 459 466 __FUNCTION__, this->process->pid, this->trdid, channel, local_cxy, cycle ); … … 489 496 hal_remote_spt( XPTR( inode_cxy , &inode_ptr->extend ) , chdev_ptr ); 490 497 491 #if DEBUG_DEVFS_ INIT492 cycle = (uint32_t)hal_get_cycles(); 493 if( DEBUG_DEVFS_ INIT < cycle )498 #if DEBUG_DEVFS_LOCAL_INIT 499 cycle = (uint32_t)hal_get_cycles(); 500 if( DEBUG_DEVFS_LOCAL_INIT < cycle ) 494 501 printk("\n[%s] thread[%x,%x] created <nic_rx[%d]> inode in cluster %x\n", 495 502 __FUNCTION__, this->process->pid, this->trdid, channel, local_cxy, cycle ); … … 525 532 hal_remote_spt( XPTR( inode_cxy , &inode_ptr->extend ) , chdev_ptr ); 526 533 527 #if DEBUG_DEVFS_ INIT528 cycle = (uint32_t)hal_get_cycles(); 529 if( DEBUG_DEVFS_ INIT < cycle )534 #if DEBUG_DEVFS_LOCAL_INIT 535 cycle = (uint32_t)hal_get_cycles(); 536 if( DEBUG_DEVFS_LOCAL_INIT < cycle ) 530 537 printk("\n[%s] thread[%x,%x] created <nic_tx[%d]> inode in cluster %x\n", 531 538 __FUNCTION__, this->process->pid, this->trdid, channel, local_cxy, cycle );
Note: See TracChangeset
for help on using the changeset viewer.