Changeset 641 for trunk/kernel/kern/scheduler.c
- Timestamp:
- Oct 10, 2019, 1:42:04 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/scheduler.c
r640 r641 255 255 __FUNCTION__, process->pid, thread->trdid, local_cxy, thread->core->lid, cycle ); 256 256 #endif 257 258 #if CONFIG_INSTRUMENTATION_PGFAULTS259 uint32_t local_nr = thread->info.local_pgfault_nr;260 uint32_t local_cost = (local_nr == 0) ? 0 : (thread->info.local_pgfault_cost / local_nr);261 uint32_t global_nr = thread->info.global_pgfault_nr;262 uint32_t global_cost = (global_nr == 0) ? 0 : (thread->info.global_pgfault_cost / global_nr);263 uint32_t false_nr = thread->info.false_pgfault_nr;264 uint32_t false_cost = (false_nr == 0) ? 0 : (thread->info.false_pgfault_cost / false_nr);265 printk("\n***** page faults for thread[%x,%x]\n"266 " - %d local : %d cycles\n"267 " - %d global : %d cycles\n"268 " - %d false : %d cycles\n",269 process->pid, thread->trdid,270 local_nr, local_cost,271 global_nr, global_cost,272 false_nr, false_cost );273 #endif274 257 // destroy process descriptor if last thread 275 258 if( count == 1 )
Note: See TracChangeset
for help on using the changeset viewer.