Changeset 438 for trunk/kernel/libk/elf.c
- Timestamp:
- Apr 4, 2018, 2:49:02 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/elf.c
r433 r438 201 201 vfs_file_count_up( file_xp ); 202 202 203 #if CONFIG_DEBUG_ELF_LOAD203 #if DEBUG_ELF_LOAD 204 204 uint32_t cycle = (uint32_t)hal_get_cycles(); 205 if( CONFIG_DEBUG_ELF_LOAD < cycle )205 if( DEBUG_ELF_LOAD < cycle ) 206 206 printk("\n[DBG] %s : found %s vseg / base %x / size %x\n" 207 207 " file_size %x / file_offset %x / mapper_xp %l / cycle %d\n", … … 228 228 error_t error; 229 229 230 #if CONFIG_DEBUG_ELF_LOAD230 #if DEBUG_ELF_LOAD 231 231 uint32_t cycle = (uint32_t)hal_get_cycles(); 232 if( CONFIG_DEBUG_ELF_LOAD < cycle )232 if( DEBUG_ELF_LOAD < cycle ) 233 233 printk("\n[DBG] %s : thread %d enter for <%s> / cycle %d\n", 234 234 __FUNCTION__, CURRENT_THREAD, pathname, cycle ); … … 252 252 } 253 253 254 #if ( CONFIG_DEBUG_ELF_LOAD & 1)255 if( CONFIG_DEBUG_ELF_LOAD < cycle )254 #if (DEBUG_ELF_LOAD & 1) 255 if( DEBUG_ELF_LOAD < cycle ) 256 256 printk("\n[DBG] %s : open file <%s>\n", __FUNCTION__, pathname ); 257 257 #endif … … 268 268 } 269 269 270 #if ( CONFIG_DEBUG_ELF_LOAD & 1)271 if( CONFIG_DEBUG_ELF_LOAD < cycle )270 #if (DEBUG_ELF_LOAD & 1) 271 if( DEBUG_ELF_LOAD < cycle ) 272 272 printk("\n[DBG] %s : loaded elf header for %s\n", __FUNCTION__ , pathname ); 273 273 #endif … … 308 308 } 309 309 310 #if ( CONFIG_DEBUG_ELF_LOAD & 1)311 if( CONFIG_DEBUG_ELF_LOAD < cycle )310 #if (DEBUG_ELF_LOAD & 1) 311 if( DEBUG_ELF_LOAD < cycle ) 312 312 printk("\n[DBG] %s : segments array allocated for %s\n", __FUNCTION__ , pathname ); 313 313 #endif … … 328 328 } 329 329 330 #if ( CONFIG_DEBUG_ELF_LOAD & 1)331 if( CONFIG_DEBUG_ELF_LOAD < cycle )330 #if (DEBUG_ELF_LOAD & 1) 331 if( DEBUG_ELF_LOAD < cycle ) 332 332 printk("\n[DBG] %s loaded segments descriptors for %s \n", __FUNCTION__ , pathname ); 333 333 #endif … … 356 356 kmem_free(&req); 357 357 358 #if CONFIG_DEBUG_ELF_LOAD358 #if DEBUG_ELF_LOAD 359 359 cycle = (uint32_t)hal_get_cycles(); 360 if( CONFIG_DEBUG_ELF_LOAD < cycle )360 if( DEBUG_ELF_LOAD < cycle ) 361 361 printk("\n[DBG] %s : thread %d exit for <%s> / entry_point %x / cycle %d\n", 362 362 __FUNCTION__, CURRENT_THREAD, pathname, header.e_entry, cycle );
Note: See TracChangeset
for help on using the changeset viewer.