Changeset 433 for trunk/kernel/syscalls/sys_fork.c
- Timestamp:
- Feb 14, 2018, 3:40:19 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_fork.c
r416 r433 63 63 parent_pid = parent_process_ptr->pid; 64 64 65 #if CONFIG_ SYSCALL_DEBUG65 #if CONFIG_DEBUG_SYS_FORK 66 66 uint64_t tm_start; 67 67 uint64_t tm_end; 68 68 tm_start = hal_get_cycles(); 69 printk("\n[DBG] %s : core[%x,%d] enter / process %x / cycle = %d\n", 70 __FUNCTION__, local_cxy, parent_thread_ptr->core->lid, parent_pid, 71 (uint32_t)tm_start );69 if( CONFIG_DEBUG_SYS_FORK < tm_start ) 70 printk("\n[DBG] %s : thread %x enter / parent %x / cycle = %d\n", 71 __FUNCTION__, parent_thread_ptr, parent_pid, (uint32_t)tm_start ); 72 72 #endif 73 73 … … 148 148 thread_unblock( XPTR( target_cxy , child_thread_ptr ) , THREAD_BLOCKED_GLOBAL ); 149 149 150 #if CONFIG_ SYSCALL_DEBUG150 #if CONFIG_DEBUG_SYS_FORK 151 151 tm_end = hal_get_cycles(); 152 printk("\n[DBG] %s : core[%x,%d] parent_process %x exit / cost = %d\n", 153 __FUNCTION__, local_cxy, parent_thread_ptr->core->lid, parent_pid, 154 (uint32_t)(tm_end - tm_start));152 if( CONFIG_DEBUG_SYS_FORK < tm_end ) 153 printk("\n[DBG] %s : parent_thread %x exit / cost = %d / cycle %d\n", 154 __FUNCTION__ , parent_thread_ptr, (uint32_t)(tm_end - tm_start), (uint32_t)tm_end ); 155 155 #endif 156 156 … … 160 160 { 161 161 162 #if CONFIG_ SYSCALL_DEBUG162 #if CONFIG_DEBUG_SYS_FORK 163 163 tm_end = hal_get_cycles(); 164 printk("\n[DBG] %s : core[%x,%d] child process %x exit / cost = %d\n", 165 __FUNCTION__, local_cxy, parent_thread_ptr->core->lid, child_pid, 166 (uint32_t)(tm_end - tm_start));164 if( CONFIG_DEBUG_SYS_FORK < tm_end ) 165 printk("\n[DBG] %s : child_thread %x exit / cost = %d / cycle %d\n", 166 __FUNCTION__ , child_thread_ptr, (uint32_t)(tm_end - tm_start), (uint32_t)tm_end ); 167 167 #endif 168 168
Note: See TracChangeset
for help on using the changeset viewer.