Changeset 623 for trunk/kernel/syscalls/sys_mmap.c
- Timestamp:
- Mar 6, 2019, 4:37:15 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_mmap.c
r611 r623 56 56 57 57 #if DEBUG_SYS_MMAP 58 tm_start = hal_get_cycles(); 59 if ( DEBUG_SYS_MMAP < tm_start ) 58 if( DEBUG_SYS_MMAP < tm_start ) 60 59 printk("\n[%s] thread[%x,%x] enter / cycle %d\n", 61 60 __FUNCTION__, process->pid, this->trdid, (uint32_t)tm_start ); … … 314 313 #endif 315 314 315 #if CONFIG_INSTRUMENTATION_SYSCALLS 316 hal_atomic_add( &syscalls_cumul_cost[SYS_MMAP] , tm_end - tm_start ); 317 hal_atomic_add( &syscalls_occurences[SYS_MMAP] , 1 ); 318 #endif 319 316 320 #if DEBUG_SYS_MMAP 317 if ( DEBUG_SYS_MMAP < tm_ start)321 if ( DEBUG_SYS_MMAP < tm_end ) 318 322 printk("\n[%s] thread[%x,%x] exit / %s / cxy %x / base %x / size %d / cycle %d\n", 319 323 __FUNCTION__, process->pid, this->trdid,
Note: See TracChangeset
for help on using the changeset viewer.