Re: [HELP] How to get address of module

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

 



> > I'm looking for *nice* way to get address of loaded module in 2.6.
> > I'd like to know the address from driver.
> 
> Maybe explaining why you need the address of a module would help.

I'm currently writing a driver to diagnose/monitor the error, such as 
core dump.

I inserted some hook in kernel, and when segfault occurs, control is 
transfered to my driver to analyze.

If the cause is in some insmod'ed module, then I would like to get
info of that module. If I get the address of that module, I can get
info such as symbol name defined by that module, etc. Then I could say
in module mmm, at func fff, at addr xxx, there is segfault.

Core dump could be in userspace app, so, in the driver I'm writting now,
I'm using same data structure to hold info of ELF file. If it was in app,
I'm getting address from current->mm->mmap->vm_start.


HK.
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux