Changeset 624 for trunk/kernel/syscalls/sys_kill.c
- Timestamp:
- Mar 12, 2019, 1:37:38 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_kill.c
r594 r624 74 74 tm_start = hal_get_cycles(); 75 75 if( DEBUG_SYS_KILL < tm_start ) 76 printk("\n[%s] thread[%x,%x] enter / process %x / %s/ cycle %d\n",77 __FUNCTION__, this->process->pid, this->trdid, pid,78 sig_type_str(sig_id), (uint32_t)tm_start );76 printk("\n[%s] thread[%x,%x] enter : %s to process %x / cycle %d\n", 77 __FUNCTION__, this->process->pid, this->trdid, 78 sig_type_str(sig_id), pid, (uint32_t)tm_start ); 79 79 #endif 80 80 … … 86 86 #if (DEBUG_SYS_KILL & 1) 87 87 if( DEBUG_SYS_KILL < tm_start ) 88 printk("\n[%s] thread[%x,%x] get owner process %x incluster %x\n",88 printk("\n[%s] thread[%x,%x] get target process descriptor %x in owner 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[% x] thread[%x,%x] get parent process%x in cluster %x\n",110 printk("\n[%s] thread[%x,%x] get parent process descriptor %x in cluster %x\n", 111 111 __FUNCTION__ , this->process->pid, this->trdid, parent_ptr, parent_cxy ); 112 112 #endif … … 128 128 process_sigaction( pid , BLOCK_ALL_THREADS ); 129 129 130 #if (DEBUG_SYS_KILL & 1) 131 if( DEBUG_SYS_KILL < tm_start ) 132 printk("\n[%s] thread[%x,%x] blocked all threads of process %x\n", 133 __FUNCTION__ , this->process->pid, this->trdid, pid ); 134 #endif 130 135 // atomically update owner process termination state 131 136 hal_remote_atomic_or( XPTR( owner_cxy , &owner_ptr->term_state ) , … … 136 141 137 142 // calling thread deschedules when it is itself a target thread 138 if( this->process->pid == pid ) sched_yield("block itself"); 143 if( this->process->pid == pid ) 144 { 145 146 #if (DEBUG_SYS_KILL & 1) 147 if( DEBUG_SYS_KILL < tm_start ) 148 printk("\n[%s] thread[%x,%x] is a target thread => deschedule\n", 149 __FUNCTION__ , this->process->pid, this->trdid ); 150 #endif 151 sched_yield("block itself"); 152 } 139 153 140 154 break;
Note: See TracChangeset
for help on using the changeset viewer.