Major Page Fault Handler in the Linux Kernel
Alfred Zhong
alfchung02 at gmail.com
Fri May 4 01:07:42 UTC 2012
Hi Dear Ubuntu developers and kernel hackers,
I am wondering where is the major page fault handler.
I wrote an algorithm to minimize page faults in the kernel. So I need to
record something whenever a page fault happens. I currently record a page
fault happen at do_page_fault(...) in arch/x86/mm/fault_32.c
However, it seems both minor and major page fault will go to
do_page_fault(...) ...
And minor page faults happen all the time and messed up the algorithm.
I guess I only want to record stuff when a major page_fault happens. So,
kernel hackers, would you please tell me where should I put my code? Which
file and which function.
By the way, I am hacking kernel 2.6.24
Thank you very much!
Alfred
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20120503/90934d55/attachment.html>
More information about the Ubuntu-devel-discuss
mailing list