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

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 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 to 1) get

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 put > into the "struct file_opera

[no subject]

2005-08-11 Thread Hiroki Kaminaga
Hi, I don't know if this is a bug, but on kernel src code, `-' and `,' is substituted to `_' in scripts/Makefile.lib but, in latest module-init-tools-3.2-pre9, only `-' is handled, but not ','. Attached is the patch for this problem against module-init-tools. Regards, HK. --diff -uNrp module-in

[PATCH][RFC] swsusp for OSK

2005-07-08 Thread Hiroki Kaminaga
# Original is at linux-pm ML. Cross posting... Here is swsusp for ARM architecture. It is still target specific. Anyone doing similar work? I managed to hibernate/wakeup on OSK on simple case, but when running mplayer or when mmap'ed and image got bigger, kernel panic'ed on wakeup, possibly due t

Re: [PATCH][RFC] swsusp for OSK

2005-07-28 Thread Hiroki Kaminaga
From: Ben Dooks <[EMAIL PROTECTED]> Subject: Re: [PATCH][RFC] swsusp for OSK Date: Fri, 8 Jul 2005 16:03:37 +0100 > Hmm, I have no idea if this is correct... I assume it is not saving > the page tables over suspend/resume, and that is why you are having > trouble restoring the page table? I look