Changeset 457 for trunk/kernel/syscalls/sys_fork.c
- Timestamp:
- Aug 2, 2018, 11:47:13 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_fork.c
r440 r457 23 23 24 24 #include <kernel_config.h> 25 #include <hal_ types.h>25 #include <hal_kernel_types.h> 26 26 #include <hal_context.h> 27 27 #include <hal_switch.h> … … 70 70 tm_start = hal_get_cycles(); 71 71 if( DEBUG_SYS_FORK < tm_start ) 72 printk("\n[DBG] %s : parent_thread %x enter / parent_pid %x/ cycle = %d\n",73 __FUNCTION__, parent_thread_ptr , parent_pid, (uint32_t)tm_start );72 printk("\n[DBG] %s : thread %x in process %x enter / cycle = %d\n", 73 __FUNCTION__, parent_thread_ptr->trdid, parent_pid, (uint32_t)tm_start ); 74 74 #endif 75 75 … … 106 106 #if (DEBUG_SYS_FORK & 1 ) 107 107 if( DEBUG_SYS_FORK < tm_start ) 108 printk("\n[DBG] %s : parent_thread%x selected cluster %x\n",109 __FUNCTION__, parent_thread_ptr , child_cxy );108 printk("\n[DBG] %s : thread %x in process %x selected cluster %x\n", 109 __FUNCTION__, parent_thread_ptr->trdid, parent_pid, child_cxy ); 110 110 #endif 111 111 … … 165 165 tm_end = hal_get_cycles(); 166 166 if( DEBUG_SYS_FORK < tm_end ) 167 printk("\n[DBG] %s : p arent_thread %x on cluster%x exit / cost = %d / cycle %d\n",168 __FUNCTION__, parent_ thread_ptr, parent_cxy, (uint32_t)(tm_end - tm_start), (uint32_t)tm_end );167 printk("\n[DBG] %s : process %x exit / cost = %d / cycle %d\n", 168 __FUNCTION__, parent_pid, (uint32_t)(tm_end - tm_start), (uint32_t)tm_end ); 169 169 #endif 170 171 170 return child_pid; 172 171 } … … 177 176 tm_end = hal_get_cycles(); 178 177 if( DEBUG_SYS_FORK < tm_end ) 179 printk("\n[DBG] %s : child_thread %x on cluster%x exit / cost = %d / cycle %d\n",180 __FUNCTION__, child_ thread_ptr, child_cxy, (uint32_t)(tm_end - tm_start), (uint32_t)tm_end );178 printk("\n[DBG] %s : process %x exit / cost = %d / cycle %d\n", 179 __FUNCTION__, child_pid, (uint32_t)(tm_end - tm_start), (uint32_t)tm_end ); 181 180 #endif 182 183 181 return 0; 184 182 }
Note: See TracChangeset
for help on using the changeset viewer.