Simon Kagstrom 2e386e4bac mtd: mtdoops: refactor as a kmsg_dumper
The last messages which happens before a crash might contain interesting
information about the crash. This patch reworks mtdoops using the
kmsg_dumper support instead of a console, which simplifies the code and
also includes the messages before the oops started.

On oops callbacks, the MTD device write is scheduled in a work queue (to
be able to use the regular mtd->write call), while panics call
mtd->panic_write directly. Thus, if panic_on_oops is set, the oops will
be written out during the panic.

A parameter to specify which mtd device to use (number or name), as well
as a flag, writable at runtime, to toggle wheter to dump oopses or only
panics (since oopses can often be handled by regular syslog).

The patch was massaged and amended by Artem.

Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
Reviewed-by: Anders Grafstrom <anders.grafstrom@netinsight.net>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2009-11-30 12:02:07 +00:00
..
2009-09-22 07:17:27 -07:00
2009-09-23 07:39:43 -07:00
2009-09-23 07:39:41 -07:00
2009-09-23 07:39:43 -07:00
2009-09-23 07:39:29 -07:00
2009-09-23 07:39:43 -07:00
2009-09-23 07:39:43 -07:00
2009-09-23 07:39:43 -07:00
2009-09-23 07:39:43 -07:00
2009-09-23 07:39:29 -07:00
2009-09-23 07:39:43 -07:00
2009-09-23 07:39:44 -07:00
2009-09-23 07:39:43 -07:00
2009-09-23 22:26:32 +09:30
2009-09-23 10:07:49 -07:00