Re: [HELP] How to get address of module

2005-08-09 Thread Jan Engelhardt
>What I wanted is: given the segfault address, I would like to > >1) get which module it is in >2) in that module, within which function it segfaulted > >module_address_lookup would do! If a kernel oopses or similar, it already prints where it faulted: EIP is at schedule_timeout+0x1234/abcde

Re: [HELP] How to get address of module

2005-08-08 Thread Hiroki Kaminaga
From: "linux-os \(Dick Johnson\)" <[EMAIL PROTECTED]> Subject: Re: [HELP] How to get address of module Date: Mon, 8 Aug 2005 09:51:25 -0400 > What do you want the address of in your driver? Do you want the > address of its various entry points (hint, the stuff you

Re: [HELP] How to get address of module

2005-08-08 Thread Hiroki Kaminaga
From: Arnd Bergmann <[EMAIL PROTECTED]> Subject: Re: [HELP] How to get address of module Date: Mon, 8 Aug 2005 15:30:53 +0200 > You can do all that with module_address_lookup() using the KALLSYMS > infrastructure. Thank you. What I wanted is: given the segfault address, I would like

Re: [HELP] How to get address of module

2005-08-08 Thread linux-os \(Dick Johnson\)
On Mon, 8 Aug 2005, Hiroki Kaminaga wrote: > > Hi! > > I'm looking for *nice* way to get address of loaded module in 2.6. > I'd like to know the address from driver. > > In 2.4, I wrote something like this: > > * * * > > (in kernel src) > --- kernel/module.c > +++ kernel/module.c > > struct modul

Re: [HELP] How to get address of module

2005-08-08 Thread Arnd Bergmann
On Maandag 08 August 2005 14:06, Hiroki Kaminaga wrote: > 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,

Re: [HELP] How to get address of module

2005-08-08 Thread 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 ker

Re: [HELP] How to get address of module

2005-08-08 Thread Stephen Rothwell
On Mon, 08 Aug 2005 20:40:22 +0900 (JST) Hiroki Kaminaga <[EMAIL PROTECTED]> wrote: > > 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. -- Cheers, Stephen Rothwell

[HELP] How to get address of module

2005-08-08 Thread Hiroki Kaminaga
Hi! I'm looking for *nice* way to get address of loaded module in 2.6. I'd like to know the address from driver. In 2.4, I wrote something like this: * * * (in kernel src) --- kernel/module.c +++ kernel/module.c struct module *module_list = &kernel_module; + struct module *get_module_queue(