PROFILE_page_fault_XXX: more detailed page PF profiling

This commit is contained in:
Balazs Gerofi
2017-03-06 20:05:13 +09:00
parent 0dd2fad33b
commit 105d373765
4 changed files with 10 additions and 0 deletions

View File

@@ -1676,6 +1676,9 @@ retry:
}
dkprintf("%s: clearing 0x%lx:%lu\n",
__FUNCTION__, pgaddr, pgsize);
#ifdef PROFILE_ENABLE
profile_event_add(PROFILE_page_fault_anon_clr, pgsize);
#endif // PROFILE_ENABLE
memset(virt, 0, pgsize);
phys = virt_to_phys(virt);
if (phys_to_page(phys)) {