Changeset 438 for trunk/kernel/syscalls/sys_thread_create.c
- Timestamp:
- Apr 4, 2018, 2:49:02 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_thread_create.c
r437 r438 62 62 process = parent->process; 63 63 64 #if CONFIG_DEBUG_SYS_THREAD_CREATE64 #if DEBUG_SYS_THREAD_CREATE 65 65 uint64_t tm_start; 66 66 uint64_t tm_end; 67 67 tm_start = hal_get_cycles(); 68 if( CONFIG_DEBUG_SYS_THREAD_CREATE < tm_start )68 if( DEBUG_SYS_THREAD_CREATE < tm_start ) 69 69 printk("\n[DBG] %s : thread %x enter / process %x / cycle %d\n" 70 70 __FUNCTION__ , parent , process->pid, (uint32_t)tm_start ); … … 79 79 { 80 80 81 #if CONFIG_DEBUG_SYSCALLS_ERROR81 #if DEBUG_SYSCALLS_ERROR 82 82 printk("\n[ERROR] in %s : user_attr unmapped\n", __FUNCTION__ ); 83 83 #endif … … 95 95 { 96 96 97 #if CONFIG_DEBUG_SYSCALLS_ERROR97 #if DEBUG_SYSCALLS_ERROR 98 98 printk("\n[ERROR] in %s : start_func unmapped\n", __FUNCTION__ ); 99 99 #endif … … 108 108 { 109 109 110 #if CONFIG_DEBUG_SYSCALLS_ERROR110 #if DEBUG_SYSCALLS_ERROR 111 111 printk("\n[ERROR] in %s : start_arg unmapped\n", __FUNCTION__ ); 112 112 #endif … … 124 124 { 125 125 126 #if CONFIG_DEBUG_SYSCALLS_ERROR126 #if DEBUG_SYSCALLS_ERROR 127 127 printk("\n[ERROR] in %s : illegal target cluster = %x\n", __FUNCTION__ , kern_attr.cxy ); 128 128 #endif … … 174 174 { 175 175 176 #if CONFIG_DEBUG_SYSCALLS_ERROR176 #if DEBUG_SYSCALLS_ERROR 177 177 printk("\n[ERROR] in %s : cannot create thread\n", __FUNCTION__ ); 178 178 #endif … … 196 196 hal_fence(); 197 197 198 #if CONFIG_DEBUG_SYS_THREAD_CREATE198 #if DEBUG_SYS_THREAD_CREATE 199 199 tm_end = hal_get_cycles(); 200 if( CONFIG_DEBUG_SYS_THREAD_CREATE < tm_end )200 if( DEBUG_SYS_THREAD_CREATE < tm_end ) 201 201 printk("\n[DBG] %s : thread %x created thread %x for process %x in cluster %x / cycle %d\n" 202 202 __FUNCTION__, parent, child_ptr, process->pid, target_cxy, (uint32_t)tm_end );
Note: See TracChangeset
for help on using the changeset viewer.