diff options
| author | Simon Kagstrom <[email protected]> | 2009-11-03 14:19:03 +0100 |
|---|---|---|
| committer | David Woodhouse <[email protected]> | 2009-11-30 12:02:07 +0000 |
| commit | 2e386e4bac90554887e73d6f342e845185b33fc3 (patch) | |
| tree | 635a811a625aaf5ca96b9a391632aa59f8fe47f8 /lib/memory-notifier-error-inject.c | |
| parent | 9507b0c838e37651030d453b9cf3b136cfeefe89 (diff) | |
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 <[email protected]>
Reviewed-by: Anders Grafstrom <[email protected]>
Signed-off-by: Artem Bityutskiy <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions