Re: Load Map

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

 



--- David Stroupe <dstroupe@keyed-upsoftware.com> wrote:
> Christine Ames wrote:
> 
> > --- David Stroupe <dstroupe@keyed-upsoftware.com> wrote:
> > 

<snip>

> >>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.
> > 

<snip> 

> Thanks for the script too!!
> 
> David

You're welcome.

--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