public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: module oops tracking [Re: [PATCH] cheap lookup of symbol names on oops()]
@ 2003-10-13 21:09 Dan Kegel
  0 siblings, 0 replies; 12+ messages in thread
From: Dan Kegel @ 2003-10-13 21:09 UTC (permalink / raw)
  To: linux-kernel

In July of 2002, Andrea Arcangeli posted a patch
(see thread http://marc.theaimsgroup.com/?l=linux-kernel&m=102772338115172&w=2)
to dump module names and address ranges during oops logging,
and said that there should eventually be a "module tracking aware ksymoops":

> I implemented what I need to track down oopses with modules. ksymoops
> should learn about it too. This will also allow us to recognize
> immediatly the kernel image used.
> 
> here an example of oops in a module with the patch applied (only 1
> module is affected so only 1 module is listed). I checked that
> 0xca40306e-0xca403060 gives the exact offset to lookup in the objdump -d
> of the module object.
 >
> this patch will solve all the issues in being able to track down module
> oopses and kernel image without introducing any waste of ram (nitpick:
> except 40 bytes of ram). For user compiled kernels, if the user isn't
> capable of saving System.map and vmlinux kksymoops remains a viable
> alternative, but I don't feel it needed for pre-compiled kernel images
> provided a compile-time database exists ...

He has carried that patch forward, and it's e.g. in his current 2.4 tree:
http://www.kernel.org/pub/linux/kernel/people/andrea/kernels/v2.4/2.4.23pre6aa3/90_module-oops-tracking-3

Looking at ksymoops' source and Changelog, it isn't obvious whether
ksymoops-2.4.9 is "module tracking aware" yet.  Has anyone worked
on this?

Thanks,
Dan


^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: [PATCH] cheap lookup of symbol names on oops()
@ 2002-07-25 17:11 Christoph Hellwig
  2002-07-25 17:21 ` Cort Dougan
  0 siblings, 1 reply; 12+ messages in thread
From: Christoph Hellwig @ 2002-07-25 17:11 UTC (permalink / raw)
  To: Cort Dougan; +Cc: linux-kernel

On Thu, Jul 25, 2002 at 11:00:33AM -0600, Cort Dougan wrote:
> This is from the -atp (Aunt Tillie and Penelope) tree.
> 
> This patch adds a small function that looks up symbol names that correspond
> to given addresses by digging through the already existent ksyms table.
> It's invaluable for debugging on embedded systems - especially when testing
> modules - since ksymoops is a hassle to deal with in cross-build
> environments.  We already have this info in the kernel so we might as well
> use it.
> 
> This patch adds use of the function for PPC and i386.

Wow! very usefull patch.  O want it for 2.4 and 2.5, please.

But could you please fix up the indentation to match common kernel style?


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2003-10-13 21:21 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-13 21:09 module oops tracking [Re: [PATCH] cheap lookup of symbol names on oops()] Dan Kegel
  -- strict thread matches above, loose matches on Subject: below --
2002-07-25 17:11 [PATCH] cheap lookup of symbol names on oops() Christoph Hellwig
2002-07-25 17:21 ` Cort Dougan
2002-07-25 19:04   ` Andrea Arcangeli
2002-07-25 20:27     ` Cort Dougan
2002-07-25 20:59       ` Andrea Arcangeli
2002-07-25 21:05         ` Cort Dougan
2002-07-25 22:06           ` Andrea Arcangeli
2002-07-25 22:05             ` Cort Dougan
2002-07-25 22:56               ` Andrea Arcangeli
2002-07-25 23:01                 ` Cort Dougan
2002-07-26 22:37                   ` module oops tracking [Re: [PATCH] cheap lookup of symbol names on oops()] Andrea Arcangeli
2002-07-26 22:55                     ` Cort Dougan
2002-07-26 23:28                       ` Andrea Arcangeli
2002-07-26 23:31                         ` Cort Dougan
2002-07-27  0:10                           ` Andrea Arcangeli
2002-07-27  2:15                             ` cort
2002-07-27  0:19                     ` Keith Owens
2002-07-27  0:31                       ` Andrea Arcangeli
2002-07-27  1:19                         ` Andrea Arcangeli
2002-07-27  1:33                           ` Keith Owens
2002-07-27  1:47                             ` Andrea Arcangeli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox