1 #ifndef __PSTORE_INTERNAL_H__
2 #define __PSTORE_INTERNAL_H__
4 #include <linux/types.h>
5 #include <linux/time.h>
6 #include <linux/pstore.h>
8 #ifdef CONFIG_PSTORE_FTRACE
9 extern void pstore_register_ftrace(void);
10 extern void pstore_unregister_ftrace(void);
12 static inline void pstore_register_ftrace(void) {}
13 static inline void pstore_unregister_ftrace(void) {}
16 #ifdef CONFIG_PSTORE_PMSG
17 extern void pstore_register_pmsg(void);
18 extern void pstore_unregister_pmsg(void);
20 static inline void pstore_register_pmsg(void) {}
21 static inline void pstore_unregister_pmsg(void) {}
24 extern struct pstore_info *psinfo;
26 extern void pstore_set_kmsg_bytes(int);
27 extern void pstore_get_records(int);
28 extern int pstore_mkfile(enum pstore_type_id, char *psname, u64 id,
29 int count, char *data, bool compressed,
30 size_t size, struct timespec time,
31 struct pstore_info *psi);
32 extern bool pstore_is_mounted(void);