Re: Load Map

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- David Stroupe <dstroupe@keyed-upsoftware.com> wrote:
> I am writing a driver/user space set of programs.  The driver
> worked 
> until yesterday and I don't understand why.  I can open the driver
> but 
> the first ioctl call to the driver hammers the computer.  It is as
> if 
> the call is going to the wrong address.  Is there a way that I can
> get a 
> load map giving me the address of the ioctl function and then
> perhaps I 
> can compare that to the address that is being called from the user
> space 
> program.
> 

Unless you are declaring "EXPORT_NO_SYMBOLS", I believe the address
of your ioctl routine will be in /proc/ksyms.

I wrote a macro to help with this:

//begin script
# get kernel symbols into a sorted list
#
# you must be root to run this script

cat /proc/ksyms > ksyms.out
sort < ksyms.out > ksyms.out.sorted
rm ksyms.out
// end script

Load your module, run the script, then edit ksyms.out.sorted.  The
address that is called will be followed by the name of the routine
called.


> I am trying to get a serial console working, but have too many
> males and 
> not enough female connections...anyway that's another story.
> 

Heh...naw...I'm not gonna' touch that...


> Any info that you could provide would be very helpful.
> 

Null modem cables rule!  If you need more help with the console
thing, let me know.

--Christine


__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux