Changeset 435 for trunk/kernel/fs/devfs.c
- Timestamp:
- Feb 20, 2018, 5:32:17 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/fs/devfs.c
r433 r435 42 42 extern chdev_directory_t chdev_dir; // allocated in kernel_init.c 43 43 44 #if CONFIG_READ_DEBUG 45 extern uint32_t enter_devfs_move; 46 extern uint32_t exit_devfs_move; 44 #if (CONFIG_DEBUG_SYS_READ & 1) 45 extern uint32_t enter_devfs_read; 46 extern uint32_t exit_devfs_read; 47 #endif 48 49 #if (CONFIG_DEBUG_SYS_WRITE & 1) 50 extern uint32_t enter_devfs_write; 51 extern uint32_t exit_devfs_write; 47 52 #endif 48 53 … … 375 380 char k_buf[CONFIG_TXT_KBUF_SIZE]; // local kernel buffer 376 381 382 #if (CONFIG_DEBUG_SYS_READ & 1) 383 enter_devfs_read = hal_time_stamp(); 384 #endif 385 386 #if (CONFIG_DEBUG_SYS_WRITE & 1) 387 enter_devfs_write = hal_time_stamp(); 388 #endif 389 377 390 #if CONFIG_DEBUG_DEVFS_MOVE 378 391 uint32_t cycle = (uint32_t)hal_get_cycles(); … … 380 393 printk("\n[DBG] %s : thread %x enter / to_mem %d / cycle %d\n", 381 394 __FUNCTION__ , CURRENT_THREAD , to_buffer , cycle ); 382 #endif383 384 #if CONFIG_READ_DEBUG385 enter_devfs_move = hal_time_stamp();386 395 #endif 387 396 … … 424 433 #endif 425 434 426 #if CONFIG_READ_DEBUG427 exit_devfs_ move= hal_time_stamp();435 #if (CONFIG_DEBUG_SYS_READ & 1) 436 exit_devfs_read = hal_time_stamp(); 428 437 #endif 429 438 return size; … … 448 457 #endif 449 458 459 #if (CONFIG_DEBUG_SYS_WRITE & 1) 460 exit_devfs_write = hal_time_stamp(); 461 #endif 450 462 return size; 451 463 }
Note: See TracChangeset
for help on using the changeset viewer.