#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/console.h>
#include <linux/vmalloc.h>
#include <linux/workqueue.h>
#include <linux/sched.h>
#include <linux/wait.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/mtd/mtd.h>
#include <linux/kmsg_dump.h>
Go to the source code of this file.
|
| module_param (record_size, ulong, 0400) |
|
| MODULE_PARM_DESC (record_size,"record size for MTD OOPS pages in bytes (default 4096)") |
|
| module_param_string (mtddev, mtddev, 80, 0400) |
|
| MODULE_PARM_DESC (mtddev,"name or index number of the MTD device to use") |
|
| module_param (dump_oops, int, 0600) |
|
| MODULE_PARM_DESC (dump_oops,"set to 1 to dump oopses, 0 to only dump panics (default 1)") |
|
| module_init (mtdoops_init) |
|
| module_exit (mtdoops_exit) |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_AUTHOR ("Richard Purdie <[email protected]>") |
|
| MODULE_DESCRIPTION ("MTD Oops/Panic console logger/driver") |
|
#define MTDOOPS_HEADER_SIZE 8 |
#define MTDOOPS_KERNMSG_MAGIC 0x5d005d00 |
#define MTDOOPS_MAX_MTD_SIZE (8 * 1024 * 1024) |
module_exit |
( |
mtdoops_exit |
| ) |
|
module_init |
( |
mtdoops_init |
| ) |
|
module_param |
( |
record_size |
, |
|
|
ulong |
, |
|
|
0400 |
|
|
) |
| |
module_param |
( |
dump_oops |
, |
|
|
int |
, |
|
|
0600 |
|
|
) |
| |
module_param_string |
( |
mtddev |
, |
|
|
mtddev |
, |
|
|
80 |
, |
|
|
0400 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
dump_oops |
, |
|
|
"set to 1 to dump |
oopses, |
|
|
0 to only dump panics(default 1)" |
|
|
) |
| |