Hi... On Sun, Mar 20, 2011 at 16:15, zhao bao <baozhao@xxxxxxxxx> 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 _______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies