how can I get page fault addressed with perf

Mulyadi Santosa mulyadi.santosa at gmail.com
Mon Mar 21 05:27:33 EDT 2011


Hi...

On Sun, Mar 20, 2011 at 16:15, zhao bao <baozhao at gmail.com> wrote:
>  Hi,  I want to trace page faults in my program. The result I wanted like this:
>  1st page fault at addrA.
>  2nd page fault at addrB.
>  3rd page fault at addrC

Not sure about perf, but once I got the same idea when I wanna
simulate in the simplest way on how stuffs like Xen manage shadow page
table. The idea is by piggy backing SIGSEGV handler. I was heavily
inspired by Phrack : http://www.phrack.org/issues.php?issue=58&id=3

Check the =[ 0x01 ]= part "Subject: Getting rid of SIGSEGV - for fun
but not for profit"

Good luck...


-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com



More information about the Kernelnewbies mailing list