1 #ifndef __PSTORE_INTERNAL_H__ 2 #define __PSTORE_INTERNAL_H__ 3 4 #include <linux/types.h> 5 #include <linux/time.h> 6 #include <linux/pstore.h> 7 8 #ifdef CONFIG_PSTORE_FTRACE 9 extern void pstore_register_ftrace(void); 10 extern void pstore_unregister_ftrace(void); 11 #else 12 static inline void pstore_register_ftrace(void) {} 13 static inline void pstore_unregister_ftrace(void) {} 14 #endif 15 16 #ifdef CONFIG_PSTORE_PMSG 17 extern void pstore_register_pmsg(void); 18 extern void pstore_unregister_pmsg(void); 19 #else 20 static inline void pstore_register_pmsg(void) {} 21 static inline void pstore_unregister_pmsg(void) {} 22 #endif 23 24 extern struct pstore_info *psinfo; 25 26 extern void pstore_set_kmsg_bytes(int); 27 extern void pstore_get_records(int); 28 extern void pstore_get_backend_records(struct pstore_info *psi, 29 struct dentry *root, int quiet); 30 extern int pstore_mkfile(struct dentry *root, 31 struct pstore_record *record); 32 extern bool pstore_is_mounted(void); 33 34 #endif 35