#include <linux/kernel.h>
#include <linux/err.h>
#include <linux/module.h>
#include <linux/version.h>
#include <linux/pstore.h>
#include <linux/time.h>
#include <linux/io.h>
#include <linux/ioport.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/compiler.h>
#include <linux/pstore_ram.h>
Go to the source code of this file.
|
| module_param (record_size, ulong, 0400) |
|
| MODULE_PARM_DESC (record_size,"size of each dump done on oops/panic") |
|
| module_param_named (console_size, ramoops_console_size, ulong, 0400) |
|
| MODULE_PARM_DESC (console_size,"size of kernel console log") |
|
| module_param_named (ftrace_size, ramoops_ftrace_size, ulong, 0400) |
|
| MODULE_PARM_DESC (ftrace_size,"size of ftrace log") |
|
| module_param (mem_address, ulong, 0400) |
|
| MODULE_PARM_DESC (mem_address,"start of reserved RAM used to store oops/panic logs") |
|
| module_param (mem_size, ulong, 0400) |
|
| MODULE_PARM_DESC (mem_size,"size of reserved RAM used to store oops/panic logs") |
|
| 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_param_named (ecc, ramoops_ecc, int, 0600) |
|
| MODULE_PARM_DESC (ramoops_ecc,"if non-zero, the option enables ECC support and specifies ""ECC buffer size in bytes (1 is a special value, means 16 ""bytes ECC)") |
|
| postcore_initcall (ramoops_init) |
|
| module_exit (ramoops_exit) |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_AUTHOR ("Marco Stornelli <[email protected]>") |
|
| MODULE_DESCRIPTION ("RAM Oops/Panic logger/driver") |
|
#define MIN_MEM_SIZE 4096UL |
Definition at line 39 of file ram.c.
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
Definition at line 23 of file ram.c.
#define RAMOOPS_KERNMSG_HDR "====" |
Definition at line 38 of file ram.c.
MODULE_DESCRIPTION |
( |
"RAM Oops/Panic logger/driver" |
| ) |
|
module_exit |
( |
ramoops_exit |
| ) |
|
module_param |
( |
record_size |
, |
|
|
ulong |
, |
|
|
0400 |
|
|
) |
| |
module_param |
( |
mem_address |
, |
|
|
ulong |
, |
|
|
0400 |
|
|
) |
| |
module_param |
( |
dump_oops |
, |
|
|
int |
, |
|
|
0600 |
|
|
) |
| |
module_param_named |
( |
console_size |
, |
|
|
ramoops_console_size |
, |
|
|
ulong |
, |
|
|
0400 |
|
|
) |
| |
module_param_named |
( |
ftrace_size |
, |
|
|
ramoops_ftrace_size |
, |
|
|
ulong |
, |
|
|
0400 |
|
|
) |
| |
module_param_named |
( |
ecc |
, |
|
|
ramoops_ecc |
, |
|
|
int |
, |
|
|
0600 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
record_size |
, |
|
|
"size of each dump done on oops/panic" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
console_size |
, |
|
|
"size of kernel console log" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
ftrace_size |
, |
|
|
"size of ftrace log" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
dump_oops |
, |
|
|
"set to 1 to dump |
oopses, |
|
|
0 to only dump panics(default 1)" |
|
|
) |
| |
postcore_initcall |
( |
ramoops_init |
| ) |
|