Changeset 594 for trunk/kernel/syscalls/sys_kill.c
- Timestamp:
- Nov 10, 2018, 2:33:26 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_kill.c
r584 r594 74 74 tm_start = hal_get_cycles(); 75 75 if( DEBUG_SYS_KILL < tm_start ) 76 printk("\n[ DBG] %s :thread[%x,%x] enter / process %x / %s / cycle %d\n",76 printk("\n[%s] thread[%x,%x] enter / process %x / %s / cycle %d\n", 77 77 __FUNCTION__, this->process->pid, this->trdid, pid, 78 78 sig_type_str(sig_id), (uint32_t)tm_start ); … … 86 86 #if (DEBUG_SYS_KILL & 1) 87 87 if( DEBUG_SYS_KILL < tm_start ) 88 printk("\n[ DBG] %s :thread[%x,%x] get owner process %x in cluster %x\n",88 printk("\n[%s] thread[%x,%x] get owner process %x in cluster %x\n", 89 89 __FUNCTION__ , this->process->pid, this->trdid, owner_ptr, owner_cxy ); 90 90 #endif … … 108 108 #if (DEBUG_SYS_KILL & 1) 109 109 if( DEBUG_SYS_KILL < tm_start ) 110 printk("\n[ DBG] %s :thread[%x,%x] get parent process %x in cluster %x\n",110 printk("\n[%x] thread[%x,%x] get parent process %x in cluster %x\n", 111 111 __FUNCTION__ , this->process->pid, this->trdid, parent_ptr, parent_cxy ); 112 112 #endif … … 135 135 thread_unblock( parent_main_xp , THREAD_BLOCKED_WAIT ); 136 136 137 // calling thread deschedules when it is itself a target thread 138 if( this->process->pid == pid ) sched_yield("block itself"); 139 137 140 break; 138 141 } … … 214 217 #if DEBUG_SYS_KILL 215 218 if( DEBUG_SYS_KILL < tm_end ) 216 printk("\n[ DBG] %s :thread[%x,%x] exit / process %x / %s / cost = %d / cycle %d\n",219 printk("\n[%s] thread[%x,%x] exit / process %x / %s / cost = %d / cycle %d\n", 217 220 __FUNCTION__ , this->process->pid, this->trdid, pid, 218 221 sig_type_str(sig_id), (uint32_t)(tm_end - tm_start), (uint32_t)tm_end );
Note: See TracChangeset
for help on using the changeset viewer.