Changeset 619 for trunk/kernel/syscalls/sys_exit.c
- Timestamp:
- Feb 12, 2019, 1:15:47 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_exit.c
r584 r619 58 58 tm_start = hal_get_cycles(); 59 59 if( DEBUG_SYS_EXIT < tm_start ) 60 printk("\n[ DBG] %s :thread[%x,%x] enter / status %x / cycle %d\n",60 printk("\n[%s] thread[%x,%x] enter / status %x / cycle %d\n", 61 61 __FUNCTION__, process->pid, this->trdid , status , (uint32_t)tm_start ); 62 62 #endif … … 69 69 #if (DEBUG_SYS_EXIT & 1) 70 70 if( DEBUG_SYS_EXIT < tm_start ) 71 printk("\n[ DBG] %s :thread[%x,%x] get owner process in cluster %x\n",71 printk("\n[%s] thread[%x,%x] get owner process in cluster %x\n", 72 72 __FUNCTION__, process->pid, this->trdid, owner_cxy ); 73 73 #endif … … 83 83 #if (DEBUG_SYS_EXIT & 1) 84 84 if( DEBUG_SYS_EXIT < tm_start ) 85 printk("\n[ DBG] %s :thread[%x,%x] get parent process in cluster %x\n",85 printk("\n[%s] thread[%x,%x] get parent process in cluster %x\n", 86 86 __FUNCTION__, process->pid, this->trdid, parent_cxy ); 87 87 #endif … … 96 96 #if( DEBUG_SYS_EXIT & 1) 97 97 if( DEBUG_SYS_EXIT < tm_start ) 98 printk("\n[ DBG] %s :thread[%x,%x] detached process from TXT\n",98 printk("\n[%s] thread[%x,%x] detached process from TXT\n", 99 99 __FUNCTION__, process->pid, this->trdid ); 100 100 #endif … … 106 106 #if( DEBUG_SYS_EXIT & 1) 107 107 if( DEBUG_SYS_EXIT < tm_start ) 108 printk("\n[ DBG] %s :thread[%x,%x] deleted all threads but itself\n",108 printk("\n[%s] thread[%x,%x] deleted all threads but itself\n", 109 109 __FUNCTION__, process->pid, this->trdid ); 110 110 #endif … … 116 116 #if( DEBUG_SYS_EXIT & 1) 117 117 if( tm_start > DEBUG_SYS_EXIT ) 118 printk("\n[ DBG] %s :thread[%x,%x] marked iself for delete\n",118 printk("\n[%u] thread[%x,%x] marked iself for delete\n", 119 119 __FUNCTION__, process->pid, this->trdid ); 120 120 #endif … … 127 127 #if( DEBUG_SYS_EXIT & 1) 128 128 if( tm_start > DEBUG_SYS_EXIT ) 129 printk("\n[ DBG] %s :thread[%x,%x] blocked main thread\n",129 printk("\n[%s] thread[%x,%x] blocked main thread\n", 130 130 __FUNCTION__, process->pid, this->trdid ); 131 131 #endif … … 138 138 #if( DEBUG_SYS_EXIT & 1) 139 139 if( tm_start > DEBUG_SYS_EXIT ) 140 printk("\n[ DBG] %s :thread[%x,%x] set exit status %x in owner process\n",140 printk("\n[%s] thread[%x,%x] set exit status %x in owner process\n", 141 141 __FUNCTION__, process->pid, this->trdid, term_state ); 142 142 #endif … … 147 147 #if( DEBUG_SYS_EXIT & 1) 148 148 if( tm_start > DEBUG_SYS_EXIT ) 149 printk("\n[ DBG] %s :thread[%x,%x] unblocked parent main thread in process %x\n",149 printk("\n[%s] thread[%x,%x] unblocked parent main thread in process %x\n", 150 150 __FUNCTION__ , process->pid, this->trdid, 151 151 hal_remote_l32( XPTR( parent_cxy , &parent_ptr->pid) ) ); … … 157 157 tm_end = hal_get_cycles(); 158 158 if( DEBUG_SYS_EXIT < tm_end ) 159 printk("\n[ DBG] %s :thread[%x,%x] exit / status %x / cost = %d / cycle %d\n",159 printk("\n[%s] thread[%x,%x] exit / status %x / cost = %d / cycle %d\n", 160 160 __FUNCTION__, process->pid, this->trdid, status, 161 161 (uint32_t)(tm_end - tm_start), (uint32_t)tm_end );
Note: See TracChangeset
for help on using the changeset viewer.