Changeset 438 for trunk/kernel/syscalls/sys_read.c
- Timestamp:
- Apr 4, 2018, 2:49:02 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_read.c
r436 r438 66 66 process_t * process = this->process; 67 67 68 #if CONFIG_DEBUG_SYS_READ68 #if DEBUG_SYS_READ 69 69 uint64_t tm_start; 70 70 uint64_t tm_end; 71 71 tm_start = hal_get_cycles(); 72 if( CONFIG_DEBUG_SYS_READ < tm_start )72 if( DEBUG_SYS_READ < tm_start ) 73 73 printk("\n[DBG] %s : thread %x enter / process %x / vaddr = %x / count %d / cycle %d\n", 74 74 __FUNCTION__, this, process->pid, vaddr, count, (uint32_t)tm_start ); 75 75 #endif 76 76 77 #if ( CONFIG_DEBUG_SYS_READ & 1)77 #if (DEBUG_SYS_READ & 1) 78 78 enter_sys_read = (uint32_t)tm_start; 79 79 #endif … … 83 83 { 84 84 85 #if CONFIG_DEBUG_SYSCALLS_ERROR85 #if DEBUG_SYSCALLS_ERROR 86 86 printk("\n[ERROR] in %s : illegal file descriptor index = %d\n", __FUNCTION__ , file_id ); 87 87 #endif … … 96 96 { 97 97 98 #if CONFIG_DEBUG_SYSCALLS_ERROR98 #if DEBUG_SYSCALLS_ERROR 99 99 printk("\n[ERROR] in %s : user buffer unmapped = %x\n", 100 100 __FUNCTION__ , (intptr_t)vaddr ); … … 113 113 { 114 114 115 #if CONFIG_DEBUG_SYSCALLS_ERROR115 #if DEBUG_SYSCALLS_ERROR 116 116 printk("\n[ERROR] in %s : undefined fd_id %d in process %x\n", 117 117 __FUNCTION__ , file_id , process->pid ); … … 130 130 { 131 131 132 #if CONFIG_DEBUG_SYSCALLS_ERROR132 #if DEBUG_SYSCALLS_ERROR 133 133 printk("\n[ERROR] in %s : file %d not readable in process %x\n", 134 134 __FUNCTION__ , file_id , process->pid ); … … 149 149 { 150 150 151 #if CONFIG_DEBUG_SYSCALLS_ERROR151 #if DEBUG_SYSCALLS_ERROR 152 152 printk("\n[ERROR] in %s : file %d not readable in process %x\n", 153 153 __FUNCTION__ , file_id , process->pid ); … … 205 205 { 206 206 207 #if CONFIG_DEBUG_SYSCALLS_ERROR207 #if DEBUG_SYSCALLS_ERROR 208 208 printk("\n[ERROR] in %s cannot read data from file %d in process %x\n", 209 209 __FUNCTION__ , file_id , process->pid ); … … 218 218 hal_fence(); 219 219 220 #if CONFIG_DEBUG_SYS_READ220 #if DEBUG_SYS_READ 221 221 tm_end = hal_get_cycles(); 222 if( CONFIG_DEBUG_SYS_READ < tm_end )222 if( DEBUG_SYS_READ < tm_end ) 223 223 printk("\n[DBG] %s : thread %x exit / process %x / cycle %d\n" 224 224 "nbytes = %d / first byte = %c / file_id = %d / cost = %d\n", … … 228 228 #endif 229 229 230 #if ( CONFIG_DEBUG_SYS_READ & 1)230 #if (DEBUG_SYS_READ & 1) 231 231 exit_sys_read = (uint32_t)tm_end; 232 232
Note: See TracChangeset
for help on using the changeset viewer.