LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 12-28-2011, 07:47 AM   #1
vdx
Member
 
Registered: Aug 2007
Location: The Greate INDIA
Distribution: CentOS, RHEL, Fedora
Posts: 102

Rep: Reputation: 24
Cool undefined symbol kallsyms_lookup_name


Dear Friends,

I am using CentOS-5.5 Final, kernel-2.6.18-238.9.1.el5

I looking for an address of given symbol in /proc/kallsyms in my kernel module.
I use "kallsyms_lookup_name" to do the same.

But when I compile the module, it gives me below error.
Quote:
WARNING: "kallsyms_lookup_name" [/dev/mod/syms.ko] undefined!
the below is my kernel config file
Quote:
cat /boot/config-2.6.18-238.9.1.el5 | grep CONFIG_KALLSYMS
===================================================
CONFIG_KALLSYMS=y
CONFIG_KALLSYMS_ALL=y
CONFIG_KALLSYMS_EXTRA_PASS=y
I have gone through the kernel source, The function kallsyms_lookup_name is exported in kernel/kallsysms.c file.

How can I resolve this ? Is there any other way to get /proc/kallsyms symbol address in kernel module ?
 
Old 12-29-2011, 02:19 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
Can you find out kallsyms_lookup_name in /proc/kallsyms?
 
Old 12-30-2011, 12:10 AM   #3
vdx
Member
 
Registered: Aug 2007
Location: The Greate INDIA
Distribution: CentOS, RHEL, Fedora
Posts: 102

Original Poster
Rep: Reputation: 24
yeah I found the below results

Quote:
cat /proc/kallsyms | grep kallsyms_lookup_name

ffffffff800a86aa T module_kallsyms_lookup_name
ffffffff800aa535 T kallsyms_lookup_name
 
Old 12-30-2011, 02:41 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
You can read /Documentation/kbuild/modules.txt. It has detail information about exported symbol.
 
  


Reply



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] symbol lookup error: /usr/sbin/httpd: undefined symbol: apr_file_link bagi Slackware 3 05-17-2011 07:49 AM
symbol lookup error: /usr/lib/libavcodec.so.51: undefined symbol: av_crc04C11DB7 priceey Linux - Software 0 05-06-2009 08:14 AM
./firefox-bin :symbol lookup error:/lib/libgthread-2.0.so.0: undefined symbol: arulupsaras Linux - General 1 11-08-2008 04:48 AM
symbol lookup error: /usr/lib/libgtk-x11.2.0.so.0: undefined symbol:... IamI Slackware 17 02-29-2008 11:10 AM
Workaround: 'symbol lookup error: k3b: undefined symbol: lstat64' devdol Linux - Software 2 02-15-2008 03:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration