Changeset 433 for trunk/kernel/syscalls/sys_read.c
- Timestamp:
- Feb 14, 2018, 3:40:19 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_read.c
r421 r433 65 65 66 66 #if CONFIG_READ_DEBUG 67 enter_sys_read = (uint32_t)tm_start; 68 #endif 69 70 thread_t * this = CURRENT_THREAD; 71 process_t * process = this->process; 72 73 #if CONFIG_DEBUG_SYS_READ 67 74 uint64_t tm_start; 68 75 uint64_t tm_end; 69 76 tm_start = hal_get_cycles(); 70 #endif 71 72 #if CONFIG_READ_DEBUG 73 enter_sys_read = (uint32_t)tm_start; 74 #endif 75 76 thread_t * this = CURRENT_THREAD; 77 process_t * process = this->process; 78 77 if( CONFIG_DEBUG_SYS_READ < tm_start ) 78 printk("\n[DBG] %s : thread %d enter / process %x / vaddr = %x / count %d / cycle %d\n", 79 __FUNCTION__, this, process->pid, vaddr, count, (uint32_t)tm_start ); 80 #endif 81 79 82 // check file_id argument 80 83 if( file_id >= CONFIG_PROCESS_FILE_MAX_NR ) … … 188 191 hal_fence(); 189 192 190 #if CONFIG_ READ_DEBUG193 #if CONFIG_DEBUG_SYS_READ 191 194 tm_end = hal_get_cycles(); 192 printk("\n[DBG] %s : core[%x,%d] / thread %x in process %x / cycle %d\n" 195 if( CONFIG_DEBUG_SYS_READ < tm_end ) 196 printk("\n[DBG] %s : thread %x / process %x / cycle %d\n" 193 197 "nbytes = %d / first byte = %c / file_id = %d / cost = %d\n", 194 198 __FUNCTION__ , local_cxy , this->core->lid , this->trdid , this->process->pid ,
Note: See TracChangeset
for help on using the changeset viewer.