Changeset 416 for trunk/kernel/syscalls/sys_exec.c
- Timestamp:
- Jan 4, 2018, 10:05:47 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_exec.c
r408 r416 160 160 // and this sys_exec() function uses a RPC to access the owner cluster if required. 161 161 // 162 // TODO : the args & envs arguments are not supported yet : both must be NULL 162 // TODO : the args & envs arguments are not supported yet : both must be NULL [AG] 163 163 ///////////////////////////////////////////////////////////////////////////////////////// 164 164 int sys_exec( char * pathname, // .elf file pathname … … 169 169 error_t error; 170 170 171 uint64_t tm_start;172 uint64_t tm_end;173 174 tm_start = hal_get_cycles();175 176 171 // get parent process pid 177 172 thread_t * this = CURRENT_THREAD; … … 179 174 pid_t pid = process->pid; 180 175 181 exec_dmsg("\n[DBG] %s : core[%x,%d] enters for process %x / cycle %d\n", 182 __FUNCTION__, local_cxy, this->core->lid, pid, (uint32_t)hal_get_cycles() ); 176 #if CONFIG_SYSCALL_DEBUG 177 uint64_t tm_start; 178 uint64_t tm_end; 179 tm_start = hal_get_cycles(); 180 printk("\n[DBG] %s : core[%x,%d] enter / process %x / path = %s / cycle = %d\n", 181 __FUNCTION__, local_cxy, this->core->lid, pid, exec_info.path, (uint32_t)tm_start ); 182 #endif 183 183 184 184 // get owner cluster … … 249 249 } 250 250 251 tm_end = hal_get_cycles(); 252 253 exec_dmsg("\n[DBG] %s : core[%x,%d] exit for process %x / cycle %d\n" 254 " pathname = %s / cost = %d\n", 255 __FUNCTION__, local_cxy, this->core->lid, pid, (uint32_t)tm_start, 256 exec_info.path , (uint32_t)(tm_end - tm_start) ); 251 #if CONFIG_SYSCALL_DEBUG 252 tm_end = hal_get_cycles(); 253 printk("\n[DBG] %s : core[%x,%d] exit / process %x / path = %s / cost = %d\n", 254 __FUNCTION__, local_cxy, this->core->lid, pid, exec_info.path, (uint32_t)(tm_end - tm_start) ); 255 #endif 257 256 258 257 return 0;
Note: See TracChangeset
for help on using the changeset viewer.