kprobe not working for some functions
问题 I am trying to use kprobe to track handle_pte_fault function calls in linux kernel. I can probe handle_mm_fault but when I try to probe handle_pte_dault , kprobe's handler for handle_pte_fault doesn't print anything. Using this I figured that i can't probe a function which is inline and also maybe static. So, I changed the definition of the handle_pte_fault function as following and recompiled the kernel. From: static int handle_pte_fault(struct vm_fault *vmf) to: noinline int handle_pte