Changeset 469 for trunk/kernel/kern/process.c
- Timestamp:
- Aug 20, 2018, 1:04:16 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/process.c
r459 r469 1163 1163 } 1164 1164 1165 #if DEBUG_PROCESS_MAKE_FORK1165 #if( DEBUG_PROCESS_MAKE_FORK & 1 ) 1166 1166 cycle = (uint32_t)hal_get_cycles(); 1167 1167 if( DEBUG_PROCESS_MAKE_FORK < cycle ) … … 1240 1240 "main thread must have LTID == 0\n" ); 1241 1241 1242 #if( DEBUG_PROCESS_MAKE_FORK & 1 ) 1242 //#if( DEBUG_PROCESS_MAKE_FORK & 1 ) 1243 #if DEBUG_PROCESS_MAKE_FORK 1243 1244 cycle = (uint32_t)hal_get_cycles(); 1244 1245 if( DEBUG_PROCESS_MAKE_FORK < cycle ) 1245 printk("\n[DBG] %s : thread %x in process %x created main thread %x on core[%x,%d] / cycle %d\n", 1246 __FUNCTION__, CURRENT_THREAD->trdid, CURRENT_THREAD->process->pid, 1247 thread, local_cxy, thread->core->lid, cycle ); 1246 printk("\n[DBG] %s : thread %x in process %x created main thread %x / cycle %d\n", 1247 __FUNCTION__, CURRENT_THREAD->trdid, CURRENT_THREAD->process->pid, thread, cycle ); 1248 1248 #endif 1249 1249 … … 1342 1342 1343 1343 #if (DEBUG_PROCESS_MAKE_EXEC & 1) 1344 cycle = (uint32_t)hal_get_cycles(); 1344 1345 if( DEBUG_PROCESS_MAKE_EXEC < cycle ) 1345 printk("\n[DBG] %s : open file <%s>\n", __FUNCTION__, path ); 1346 printk("\n[DBG] %s : thread %x in process %x opened file <%s> / cycle %d\n", 1347 __FUNCTION__, thread->trdid, pid, path, cycle ); 1346 1348 #endif 1347 1349 … … 1349 1351 process_sigaction( pid , DELETE_ALL_THREADS ); 1350 1352 1353 #if (DEBUG_PROCESS_MAKE_EXEC & 1) 1354 cycle = (uint32_t)hal_get_cycles(); 1355 if( DEBUG_PROCESS_MAKE_EXEC < cycle ) 1356 printk("\n[DBG] %s : thread %x in process %x deleted all threads / cycle %d\n", 1357 __FUNCTION__, thread->trdid, pid, cycle ); 1358 #endif 1359 1351 1360 // reset local process VMM 1352 1361 vmm_destroy( process ); … … 1355 1364 cycle = (uint32_t)hal_get_cycles(); 1356 1365 if( DEBUG_PROCESS_MAKE_EXEC < cycle ) 1357 printk("\n[DBG] %s : thread %x in process %x /reset VMM / cycle %d\n",1366 printk("\n[DBG] %s : thread %x in process %x reset VMM / cycle %d\n", 1358 1367 __FUNCTION__, thread->trdid, pid, cycle ); 1359 1368 #endif … … 1400 1409 if( error ) 1401 1410 { 1402 printk("\n[ERROR] in %s : cannot resetmain thread for %s\n", __FUNCTION__ , path );1411 printk("\n[ERROR] in %s : cannot update main thread for %s\n", __FUNCTION__ , path ); 1403 1412 vfs_close( file_xp , file_id ); 1404 1413 // FIXME restore old process VMM
Note: See TracChangeset
for help on using the changeset viewer.