diff options
author | Markus Pargmann <mpa@pengutronix.de> | 2015-12-08 10:39:32 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-12-10 08:49:52 +0100 |
commit | 160d2ed0ba18b5d849ecc98dfde25e350928e7b8 (patch) | |
tree | b2fe1c487732571f7f2cd241e12ad19c910c9340 /fs/pstore/internal.h | |
parent | 6c42710ae03bd642f68220dea4dac60b6cbd6d23 (diff) | |
download | barebox-160d2ed0ba18b5d849ecc98dfde25e350928e7b8.tar.gz barebox-160d2ed0ba18b5d849ecc98dfde25e350928e7b8.tar.xz |
fs: Add pstore filesystem
pstore is a persistent storage filesystem used for RAMOOPS. It is used
to store console logs, panics, ftrace and other information in case of a
crash/panic/oops/reboot.
pstore is implemented for barebox as a read-only filesystem at the
moment. It may be extended later on. The idea is to provide a way to
extract essential data from the last running kernel.
Most of the code is copied from the kernel. However this is only a
lightweight implementation without real write support yet.
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs/pstore/internal.h')
-rw-r--r-- | fs/pstore/internal.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/fs/pstore/internal.h b/fs/pstore/internal.h new file mode 100644 index 0000000000..0a8df1f4e2 --- /dev/null +++ b/fs/pstore/internal.h @@ -0,0 +1,19 @@ +#ifndef __PSTORE_INTERNAL_H__ +#define __PSTORE_INTERNAL_H__ + +#include <linux/types.h> +#include <linux/time.h> +#include <linux/pstore.h> + +#define PSTORE_NAMELEN 64 + +extern struct pstore_info *psinfo; + +extern void pstore_set_kmsg_bytes(int); +extern void pstore_get_records(int); +extern int pstore_mkfile(enum pstore_type_id, char *psname, u64 id, + int count, char *data, bool compressed, + size_t size, struct pstore_info *psi); +extern int pstore_is_mounted(void); + +#endif |