Changeset 438 for trunk/kernel/syscalls/sys_exit.c
- Timestamp:
- Apr 4, 2018, 2:49:02 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_exit.c
r436 r438 43 43 trdid_t trdid = this->trdid; 44 44 45 #if CONFIG_DEBUG_SYS_EXIT45 #if DEBUG_SYS_EXIT 46 46 uint64_t tm_start; 47 47 uint64_t tm_end; 48 48 tm_start = hal_get_cycles(); 49 if( CONFIG_DEBUG_SYS_EXIT < tm_start )49 if( DEBUG_SYS_EXIT < tm_start ) 50 50 printk("\n[DBG] %s : thread %x enter / process %x / status %x / cycle %d\n", 51 51 __FUNCTION__ , this, pid , status , (uint32_t)tm_start ); … … 59 59 { 60 60 61 #if CONFIG_DEBUG_SYSCALLS_ERROR61 #if DEBUG_SYSCALLS_ERROR 62 62 printk("\n[ERROR] in %s : calling thread %x is not thread 0 in owner cluster %x\n", 63 63 __FUNCTION__, trdid, owner_cxy ); … … 73 73 process->term_state = status; 74 74 75 #if( CONFIG_DEBUG_SYS_EXIT & 1)75 #if( DEBUG_SYS_EXIT & 1) 76 76 printk("\n[DBG] %s : set exit status in process term_state\n", __FUNCTION__); 77 77 #endif … … 80 80 process_txt_detach( XPTR( local_cxy , process ) ); 81 81 82 #if( CONFIG_DEBUG_SYS_EXIT & 1)82 #if( DEBUG_SYS_EXIT & 1) 83 83 printk("\n[DBG] %s : removed from TXT list\n", __FUNCTION__); 84 84 #endif … … 87 87 process_sigaction( pid , DELETE_ALL_THREADS ); 88 88 89 #if( CONFIG_DEBUG_SYS_EXIT & 1)89 #if( DEBUG_SYS_EXIT & 1) 90 90 printk("\n[DBG] %s : deleted all other threads than main\n", __FUNCTION__); 91 91 #endif … … 97 97 thread_block( XPTR( local_cxy , this ) , THREAD_BLOCKED_GLOBAL ); 98 98 99 #if( CONFIG_DEBUG_SYS_EXIT & 1)99 #if( DEBUG_SYS_EXIT & 1) 100 100 printk("\n[DBG] %s : blocked the main thread\n", __FUNCTION__); 101 101 #endif … … 106 106 PROCESS_TERM_EXIT ); 107 107 108 #if( CONFIG_DEBUG_SYS_EXIT & 1)108 #if( DEBUG_SYS_EXIT & 1) 109 109 printk("\n[DBG] %s : set EXIT flag in process term_state\n", __FUNCTION__); 110 110 #endif … … 112 112 hal_fence(); 113 113 114 #if CONFIG_DEBUG_SYS_EXIT114 #if DEBUG_SYS_EXIT 115 115 tm_end = hal_get_cycles(); 116 if( CONFIG_DEBUG_SYS_EXIT < tm_end )116 if( DEBUG_SYS_EXIT < tm_end ) 117 117 printk("\n[DBG] %s : thread %x exit / process %x / status %x / cost = %d / cycle %d\n", 118 118 __FUNCTION__, this, pid, status, (uint32_t)(tm_end - tm_start), (uint32_t)tm_end );
Note: See TracChangeset
for help on using the changeset viewer.