Changeset 603 for trunk/kernel/libk/elf.c
- Timestamp:
- Dec 3, 2018, 12:17:35 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/elf.c
r457 r603 198 198 uint32_t cycle = (uint32_t)hal_get_cycles(); 199 199 if( DEBUG_ELF_LOAD < cycle ) 200 printk("\n[ DBG] %s :found %s vseg / base %x / size %x\n"200 printk("\n[%s] found %s vseg / base %x / size %x\n" 201 201 " file_size %x / file_offset %x / mapper_xp %l / cycle %d\n", 202 202 __FUNCTION__ , vseg_type_str(vseg->type) , vseg->min , vseg->max - vseg->min , … … 228 228 229 229 #if DEBUG_ELF_LOAD 230 uint32_t cycle = (uint32_t)hal_get_cycles(); 231 if( DEBUG_ELF_LOAD < cycle ) 232 printk("\n[DBG] %s : thread %d in process %x enter for <%s> / cycle %d\n", 233 __FUNCTION__, CURRENT_THREAD->trdid, process->pid, name, cycle ); 230 uint32_t cycle = (uint32_t)hal_get_cycles(); 231 thread_t * this = CURRENT_THREAD; 232 if( DEBUG_ELF_LOAD < cycle ) 233 printk("\n[%s] thread[%x,%x] enter for <%s> / cycle %d\n", 234 __FUNCTION__, this->process->pid, this->trdid, name, cycle ); 234 235 #endif 235 236 … … 246 247 #if (DEBUG_ELF_LOAD & 1) 247 248 if( DEBUG_ELF_LOAD < cycle ) 248 printk("\n[ DBG] %s :loaded elf header for <%s>\n", __FUNCTION__ , name );249 printk("\n[%s] loaded elf header for <%s>\n", __FUNCTION__ , name ); 249 250 #endif 250 251 … … 283 284 #if (DEBUG_ELF_LOAD & 1) 284 285 if( DEBUG_ELF_LOAD < cycle ) 285 printk("\n[ DBG] %s :segments array allocated for <%s>\n", __FUNCTION__ , name );286 printk("\n[%s] segments array allocated for <%s>\n", __FUNCTION__ , name ); 286 287 #endif 287 288 … … 302 303 #if (DEBUG_ELF_LOAD & 1) 303 304 if( DEBUG_ELF_LOAD < cycle ) 304 printk("\n[ DBG] %sloaded segments descriptors for <%s>\n", __FUNCTION__ , name );305 printk("\n[%s] loaded segments descriptors for <%s>\n", __FUNCTION__ , name ); 305 306 #endif 306 307 … … 330 331 cycle = (uint32_t)hal_get_cycles(); 331 332 if( DEBUG_ELF_LOAD < cycle ) 332 printk("\n[ DBG] %s : thread %x in process %xexit for <%s> / entry_point %x / cycle %d\n",333 __FUNCTION__, CURRENT_THREAD->trdid, process->pid, name, header.e_entry, cycle );333 printk("\n[%s] thread[%x,%x] exit for <%s> / entry_point %x / cycle %d\n", 334 __FUNCTION__, this->process->pid, this->trdid, name, header.e_entry, cycle ); 334 335 #endif 335 336
Note: See TracChangeset
for help on using the changeset viewer.