Changeset 635 for trunk/kernel/syscalls/sys_fork.c
- Timestamp:
- Jun 26, 2019, 11:42:37 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_fork.c
r625 r635 72 72 73 73 #if DEBUG_SYS_FORK 74 if( DEBUG_SYS_FORK < tm_start )74 if( DEBUG_SYS_FORK < (uint32_t)tm_start ) 75 75 printk("\n[%s] thread[%x,%x] enter / cycle = %d\n", 76 76 __FUNCTION__, parent_pid, parent_thread_ptr->trdid, (uint32_t)tm_start ); … … 109 109 110 110 #if (DEBUG_SYS_FORK & 1 ) 111 if( DEBUG_SYS_FORK < tm_start )111 if( DEBUG_SYS_FORK < (uint32_t)tm_start ) 112 112 printk("\n[%s] thread[%x,%x] selected cluster %x\n", 113 113 __FUNCTION__, parent_pid, parent_thread_ptr->trdid, child_cxy ); … … 150 150 } 151 151 152 // set remote child CPU context from parent_thread register values 152 // set the remote child CPU context from parent register values, 153 // set the remote child uzone from 153 154 // replicates the parent thread kernel stack to the child thread descriptor, 154 155 // and finally unblock the child thread. … … 171 172 172 173 #if DEBUG_SYS_FORK 173 if( DEBUG_SYS_FORK < tm_end )174 if( DEBUG_SYS_FORK < (uint32_t)tm_end ) 174 175 printk("\n[%s] parent thread[%x,%x] exit / child_pid %x / cycle %d\n", 175 176 __FUNCTION__, current->process->pid, current->trdid, child_pid, (uint32_t)tm_end ); 176 177 #endif 177 178 178 // only parent contribute to instrumentation 179 // only parent display the parent and child VMM 180 #if (DEBUG_SYS_FORK & 1 ) 181 if( DEBUG_SYS_FORK < (uint32_t)tm_end ) 182 { 183 process_t * child_process_ptr = hal_remote_lpt( XPTR( child_cxy , 184 &child_thread_ptr->process ) ); 185 xptr_t child_process_xp = XPTR( child_cxy , child_process_ptr ); 186 187 hal_vmm_display( ref_process_xp , true ); 188 hal_vmm_display( child_process_xp , true ); 189 } 190 #endif 191 192 // only parent contribute to syscalls instrumentation 179 193 #if CONFIG_INSTRUMENTATION_SYSCALLS 180 194 hal_atomic_add( &syscalls_cumul_cost[SYS_FORK] , tm_end - tm_start ); … … 187 201 188 202 #if DEBUG_SYS_FORK 189 if( DEBUG_SYS_FORK < tm_end )203 if( DEBUG_SYS_FORK < (uint32_t)tm_end ) 190 204 printk("\n[%s] child thread[%x,%x] exit / child_pid %x / cycle %d\n", 191 205 __FUNCTION__, current->process->pid, current->trdid, child_pid, (uint32_t)tm_end );
Note: See TracChangeset
for help on using the changeset viewer.