LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 01-17-2013, 01:29 AM   #1
dave.raj
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Rep: Reputation: Disabled
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!!
 
Old 01-20-2013, 08:58 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

Rep: Reputation: 148Reputation: 148
Quote:
EXPORT_SYMBOL_GPL(debugfs_create_dir);
Is your module GPLed?
 
Old 01-20-2013, 11:53 PM   #3
dave.raj
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Mara View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Unknown Symbol! Mohammad Abdelhadi Programming 1 07-20-2010 11:07 AM
module Unknown symbol jackandking Linux - Kernel 2 05-16-2008 08:35 PM
Unknown symbol video_devdata etc....please help Parth Pathak Linux - Hardware 1 06-09-2007 12:15 PM
Unknown symbol __bad_spinlock_type sochatte Linux - Kernel 0 01-24-2007 11:20 PM
sbp2: Unknown symbol chichibabin Mandriva 0 02-17-2004 07:21 AM


All times are GMT -5. The time now is 05:13 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration