xref: /openbmc/linux/fs/pstore/internal.h (revision 8730046c)
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 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);
33 
34 #endif
35