Changeset 421 for trunk/kernel/syscalls/sys_exec.c
- Timestamp:
- Jan 29, 2018, 5:40:34 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_exec.c
r416 r421 170 170 171 171 // get parent process pid 172 thread_t * this = CURRENT_THREAD;173 process_t * process = this->process;174 pid_t pid = process->pid;172 thread_t * this = CURRENT_THREAD; 173 process_t * process = this->process; 174 pid_t pid = process->pid; 175 175 176 176 #if CONFIG_SYSCALL_DEBUG … … 178 178 uint64_t tm_end; 179 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 );180 printk("\n[DBG] %s : core[%x,%d] enter / process %x / cycle = %d\n", 181 __FUNCTION__, local_cxy, this->core->lid, pid, (uint32_t)tm_start ); 182 182 #endif 183 183 … … 251 251 #if CONFIG_SYSCALL_DEBUG 252 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) ); 253 printk("\n[DBG] %s : core[%x,%d] exit / process %x / path = %s / cost = %d / cycle %d\n", 254 __FUNCTION__, local_cxy, this->core->lid, pid, exec_info.path, 255 (uint32_t)(tm_end - tm_start) , (uint32_t)tm_end ); 255 256 #endif 256 257
Note: See TracChangeset
for help on using the changeset viewer.