Im trying to intercept the __do_page_fault()
method in linux kernel. The normal way to register kprobes
, i.e. defining kp.addr
as
kp.addr = (kprobe_opcode_t *) kallsyms_lookup_name("__do_page_fault");
is not working. What's the proper way to do this?
Edit: Any other method of intercepting do_page_fault will also work for me.