Does anyone know how one can keep track of VM page access sequence numbers of some application programs? One way I thought was to mark each virtual page as protected at allocation time, so an access to such a page will result a page fault, which is much easier to record. However, I couldn't find any kernel functions that will lock only one virtual page. The functions I found were just marking an entire virtual memory area as not readable, not writable, etc. I am trying to create some user application program page access profiles. Any hints are greatly appreciated.
Shawn
|