Changeset 670 for trunk/kernel/syscalls/sys_trace.c
- Timestamp:
- Nov 19, 2020, 11:45:52 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_trace.c
r637 r670 38 38 39 39 thread_t * this = CURRENT_THREAD; 40 process_t * process = this->process;41 40 42 #if (DEBUG_SYS_TRACE || CONFIG_INSTRUMENTATION_SYSCALLS) 43 uint64_t tm_start = hal_get_cycles(); 41 #if DEBUG_SYS_TRACE || DEBUG_SYSCALLS_ERROR || CONFIG_INSTRUMENTATION_SYSCALLS 42 process_t * process = this->process; 43 uint64_t tm_start = hal_get_cycles(); 44 44 #endif 45 45 … … 55 55 56 56 #if DEBUG_SYSCALLS_ERROR 57 printk("\n[ERROR] in %s : illegal cxy argument %x / thread %x / process %x\n", 58 __FUNCTION__ , cxy , this->trdid , process->pid ); 57 if( DEBUG_SYSCALLS_ERROR < (uint32_t)tm_start ) 58 printk("\n[ERROR] in %s : thread[%x,%x] / illegal cxy argument %x\n", 59 __FUNCTION__ , this->trdid , process->pid , cxy ); 59 60 #endif 60 61 this->errno = EINVAL; … … 68 69 69 70 #if DEBUG_SYSCALLS_ERROR 70 printk("\n[ERROR] in %s : illegal lid argument %x / thread %x / process %x\n", 71 __FUNCTION__ , lid , this->trdid , process->pid ); 71 if( DEBUG_SYSCALLS_ERROR < (uint32_t)tm_start ) 72 printk("\n[ERROR] in %s : thread[%x,%x] / illegal lid argument %x\n", 73 __FUNCTION__ , this->trdid , process->pid , lid ); 72 74 #endif 73 75 this->errno = EINVAL; … … 100 102 hal_atomic_add( &syscalls_occurences[SYS_TRACE] , 1 ); 101 103 #endif 104 102 105 return 0; 103 106
Note: See TracChangeset
for help on using the changeset viewer.