Re: [PATCH 1/23] Make register values available to panic notifiers

From: Mike Frysinger
Date: Mon Apr 12 2010 - 02:24:35 EST


On Mon, Apr 12, 2010 at 02:06, David VomLehn wrote:
> This patch makes panic() and die() registers available to, for example,
> panic notifier functions. ÂPanic notifier functions are quite useful
> for recording crash information, but they don't get passed the register
> values. This makes it hard to print register contents, do stack
> backtraces, etc. The changes in this patch save the register state when
> panic() is called and introduce a function for die() to call that allows
> it to pass in the registers it was passed.
>
> Following this patch are more patches, one per architecture. These include
> two types of changes:
> o ÂA save_ptregs() function for the processor. I've taken a whack at
> Â doing this for all of the processors. I have tested x86 and MIPS
> Â versions. I was able to find cross compilers for ARM, ... and the
> Â code compiles cleanly. Everything else, well, what you see is sheer
> Â fantasy. You are welcome to chortle with merriment.

could you post a sample module that you're using to test with here ?
presumably you have some simple code that registers a notify handler
and then calls panic_with_regs() ...
-mike
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/