Messages in this thread | | | Date | Mon, 08 Aug 2005 21:06:45 +0900 (JST) | Subject | Re: [HELP] How to get address of module | From | Hiroki Kaminaga <> |
| |
> > 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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |