LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (http://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   debugfs : Unknown symbol debugfs_create_dir (http://www.linuxquestions.org/questions/linux-kernel-70/debugfs-unknown-symbol-debugfs_create_dir-4175445977/)

dave.raj 01-17-2013 01:29 AM

debugfs : Unknown symbol debugfs_create_dir
 
Hi,
I'm using Ubuntu 12.04 and i was trying to debug the kernel using debugs. I have compiled the kernel with required options like,
Code:

Kernel hacking[*] Magic SysRq key
Kernel hacking[*] Debug filesystem

I have written a module which include kernel linked list and kernel threads. The module works fine. Then i have added the debugfs code in the same module and i got the following error while inserting the module(i.e. during insmod command),

Code:

insmod: error inserting 'kll.ko': -1 Unknown symbol in module
I have checked dmesg and i found that the debufs calls like debugfs_create_dir are said to be unknown...

Now I'm stuck at this point.

Any pointers or help is welcome!!

Mara 01-20-2013 08:58 AM

Quote:

EXPORT_SYMBOL_GPL(debugfs_create_dir);
Is your module GPLed?

dave.raj 01-20-2013 11:53 PM

Quote:

Originally Posted by Mara (Post 4874085)
Is your module GPLed?

Yup, it is already GPLed and the code,i.e. EXPORT_SYMBOL_GPL(debugfs_create_dir), exists in fs/debugfs/inode.c


All times are GMT -5. The time now is 04:58 PM.