kprobe exit point
I'm trying to write a small kernel module to monitor page fault events of a certain process. I'm currently using a kprobe to insert the monitoring code into the page fault handler in the kernel. So the entry point of the probe is at the beginning of handle_mm_fault() kernel function. Then I want the probe to exit at the point the fault is handled. However, I'm not sure where the exit point should be, therefore I can't figure the correct exit offset for the probe. I've read the article on IBM DeveloperWorks, it talks about how to calculate the offset, but it doesn't say anything about why that exit point was picked. Any hint on how I should pick the exit point? Thanks.