Changeset 637 for trunk/kernel/syscalls/sys_place_fork.c
- Timestamp:
- Jul 18, 2019, 2:06:55 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_place_fork.c
r623 r637 40 40 process_t * process = this->process; 41 41 42 #if (DEBUG_SYS_PLACE_FORK || CONFIG_INSTRUMENTATION_SYSCALLS) 43 uint64_t tm_start = hal_get_cycles(); 44 #endif 45 46 #if DEBUG_SYS_PLACE_FORK 47 if( DEBUG_SYS_PLACE_FORK < tm_start ) 48 printk("\n[%s] thread[%x,%x] enter / cxy %x / cycle %d\n", 49 __FUNCTION__, process->pid, this->trdid, cxy, (uint32_t)tm_start ); 50 #endif 51 42 52 // check cxy argument 43 if( cluster_is_ undefined( cxy ))53 if( cluster_is_active( cxy ) == false ) 44 54 { 45 55 … … 56 66 this->fork_cxy = cxy; 57 67 68 #if (DEBUG_SYS_PLACE_FORK || CONFIG_INSTRUMENTATION_SYSCALLS) 69 uint64_t tm_end = hal_get_cycles(); 70 #endif 71 72 #if DEBUG_SYS_PLACE_FORK 73 if( DEBUG_SYS_PLACE_FORK < tm_end ) 74 printk("\n[%s] thread[%x,%x] exit / cycle %d\n", 75 __FUNCTION__ , process->pid, this->trdid, (uint32_t)tm_end ); 76 #endif 77 78 #if CONFIG_INSTRUMENTATION_SYSCALLS 79 hal_atomic_add( &syscalls_cumul_cost[SYS_PLACE_FORK] , tm_end - tm_start ); 80 hal_atomic_add( &syscalls_occurences[SYS_PLACE_FORK] , 1 ); 81 #endif 82 58 83 return 0; 59 84
Note: See TracChangeset
for help on using the changeset viewer.