Changeset 459 for trunk/kernel/syscalls/sys_close.c
- Timestamp:
- Aug 13, 2018, 1:43:20 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_close.c
r457 r459 39 39 process_t * process = this->process; 40 40 41 #if DEBUG_SYS_CLOSE 42 uint32_t tm_start; 43 uint32_t tm_end; 44 tm_start = hal_get_cycles(); 45 if( DEBUG_SYS_CLOSE < tm_start ) 46 printk("\n[DBG] %s : thread %x in process %x enter / fdid %d / cycle %d\n", 47 __FUNCTION__, this->trdid, process->pid, file_id, (uint32_t)tm_start ); 48 #endif 49 41 50 // check file_id argument 42 51 if( file_id >= CONFIG_PROCESS_FILE_MAX_NR ) … … 72 81 hal_fence(); 73 82 83 #if DEBUG_SYS_CLOSE 84 tm_end = hal_get_cycles(); 85 if( DEBUG_SYS_CLOSE < tm_start ) 86 printk("\n[DBG] %s : thread %x in process %x exit / cost %d / cycle %d\n", 87 __FUNCTION__, this->trdid, process->pid, (uint32_t)(tm_end - tm_start), (uint32_t)tm_start ); 88 #endif 89 74 90 return 0; 75 91 }
Note: See TracChangeset
for help on using the changeset viewer.