/src/barebox/fs/pstore/internal.h
Line | Count | Source |
1 | | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | | /* SPDX-Comment: Origin-URL: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/fs/pstore/internal.h?id=24b8f8dcb9a139a36cf48bfbe935e8dc1f33ed79 */ |
3 | | #ifndef __PSTORE_INTERNAL_H__ |
4 | | #define __PSTORE_INTERNAL_H__ |
5 | | |
6 | | #include <linux/types.h> |
7 | | #include <linux/time.h> |
8 | | #include <linux/pstore.h> |
9 | | |
10 | | struct dentry; |
11 | | |
12 | | #ifdef CONFIG_PSTORE_FTRACE |
13 | | extern unsigned long decode_ip(unsigned long ip); |
14 | | extern void pstore_register_ftrace(void); |
15 | | extern void pstore_unregister_ftrace(void); |
16 | | ssize_t pstore_ftrace_combine_log(char **dest_log, size_t *dest_log_size, |
17 | | const char *src_log, size_t src_log_size); |
18 | | #else |
19 | 0 | static inline void pstore_register_ftrace(void) {}Unexecuted instantiation: fs.c:pstore_register_ftrace Unexecuted instantiation: platform.c:pstore_register_ftrace |
20 | 0 | static inline void pstore_unregister_ftrace(void) {}Unexecuted instantiation: fs.c:pstore_unregister_ftrace Unexecuted instantiation: platform.c:pstore_unregister_ftrace |
21 | 0 | static inline unsigned long decode_ip(unsigned long ip) { return ip; }Unexecuted instantiation: fs.c:decode_ip Unexecuted instantiation: platform.c:decode_ip |
22 | | static inline ssize_t |
23 | | pstore_ftrace_combine_log(char **dest_log, size_t *dest_log_size, |
24 | | const char *src_log, size_t src_log_size) |
25 | 0 | { |
26 | 0 | *dest_log_size = 0; |
27 | 0 | return 0; |
28 | 0 | } Unexecuted instantiation: fs.c:pstore_ftrace_combine_log Unexecuted instantiation: platform.c:pstore_ftrace_combine_log |
29 | | #endif |
30 | | |
31 | | #ifdef CONFIG_PSTORE_PMSG |
32 | | extern void pstore_register_pmsg(void); |
33 | | extern void pstore_unregister_pmsg(void); |
34 | | #else |
35 | 0 | static inline void pstore_register_pmsg(void) {}Unexecuted instantiation: fs.c:pstore_register_pmsg Unexecuted instantiation: platform.c:pstore_register_pmsg |
36 | 0 | static inline void pstore_unregister_pmsg(void) {}Unexecuted instantiation: fs.c:pstore_unregister_pmsg Unexecuted instantiation: platform.c:pstore_unregister_pmsg |
37 | | #endif |
38 | | |
39 | | extern struct pstore_info *psinfo; |
40 | | |
41 | | extern void pstore_get_records(int); |
42 | | extern void pstore_get_backend_records(struct pstore_info *psi, |
43 | | struct dentry *root, int quiet); |
44 | | extern int pstore_mkfile(struct dentry *root, |
45 | | struct pstore_record *record); |
46 | | extern void pstore_record_init(struct pstore_record *record, |
47 | | struct pstore_info *psi); |
48 | | |
49 | | #endif |