Changeset 438 for trunk/kernel/syscalls/sys_kill.c
- Timestamp:
- Apr 4, 2018, 2:49:02 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_kill.c
r436 r438 50 50 trdid_t trdid = this->trdid; 51 51 52 #if CONFIG_DEBUG_SYS_KILL52 #if DEBUG_SYS_KILL 53 53 uint64_t tm_start; 54 54 uint64_t tm_end; 55 55 tm_start = hal_get_cycles(); 56 if( CONFIG_DEBUG_SYS_KILL < tm_start )56 if( DEBUG_SYS_KILL < tm_start ) 57 57 printk("\n[DBG] %s : thread %x enter / process %x / sig %d / cycle %d\n", 58 58 __FUNCTION__ , this, pid, sig_id, (uint32_t)tm_start ); … … 68 68 { 69 69 70 #if CONFIG_DEBUG_SYSCALLS_ERROR70 #if DEBUG_SYSCALLS_ERROR 71 71 printk("\n[ERROR] in %s : process %x not found\n", __FUNCTION__, pid ); 72 72 #endif … … 79 79 { 80 80 81 #if CONFIG_DEBUG_SYSCALLS_ERROR81 #if DEBUG_SYSCALLS_ERROR 82 82 printk("\n[ERROR] in %s : only main thread can kill itself\n", __FUNCTION__ ); 83 83 #endif … … 96 96 { 97 97 98 #if CONFIG_DEBUG_SYSCALLS_ERROR98 #if DEBUG_SYSCALLS_ERROR 99 99 printk("\n[ERROR] in %s : process_init cannot be killed\n", __FUNCTION__ ); 100 100 #endif … … 167 167 { 168 168 169 #if CONFIG_DEBUG_SYSCALLS_ERROR169 #if DEBUG_SYSCALLS_ERROR 170 170 printk("\n[ERROR] in %s : illegal signal %d / process %x\n", __FUNCTION__, sig_id, pid ); 171 171 #endif … … 178 178 hal_fence(); 179 179 180 #if CONFIG_DEBUG_SYS_KILL180 #if DEBUG_SYS_KILL 181 181 tm_end = hal_get_cycles(); 182 if( CONFIG_DEBUG_SYS_KILL < tm_end )182 if( DEBUG_SYS_KILL < tm_end ) 183 183 printk("\n[DBG] %s : thread %x exit / process %x / sig %d / cost = %d / cycle %d\n", 184 184 __FUNCTION__ , this, pid, sig_id, (uint32_t)(tm_end - tm_start), (uint32_t)tm_end );
Note: See TracChangeset
for help on using the changeset viewer.