LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   unknown symbol register_kprobe (https://www.linuxquestions.org/questions/linux-kernel-70/unknown-symbol-register_kprobe-4175435715/)

AmirGooran 11-05-2012 08:04 AM

unknown symbol register_kprobe
 
I am trying to compile and insert this kprobe example(from RedHat Website) in my F17 kernel:

http://www.redhat.com/magazine/005ma...robebio_c.html

and this makefile: http://www.redhat.com/magazine/005ma.../makefile.html

but when I try to insert module into kernel, I see this error message: Error: could not insert module ./gooran_module.ko: Unknown symbol in module. dmesg says:

[ 3533.204708] gooran_module: Unknown symbol register_kprobe (err 0) [ 3533.204750] gooran_module: Unknown symbol unregister_kprobe (err 0)

Can anyone help me?:confused:

ramzi.kahil 04-26-2014 09:42 AM

Well in the link the includes are missing. Did you include the following?
Code:

#include <linux/modules.h>
#include <linux/kernel.h>
#include <linux/kprobes.h>
#include <linux/ptrace.h>

* Hope this is still relevant to you.


All times are GMT -5. The time now is 03:22 AM.