Contributors: 11
| Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
| Kees Cook |
98 |
35.77% |
10 |
38.46% |
| Anton Vorontsov |
50 |
18.25% |
4 |
15.38% |
| Tony Luck |
37 |
13.50% |
3 |
11.54% |
| Guilherme G. Piccoli |
25 |
9.12% |
1 |
3.85% |
| Geliang Tang |
22 |
8.03% |
1 |
3.85% |
| Mark Salyzyn |
17 |
6.20% |
2 |
7.69% |
| Joel A Fernandes |
16 |
5.84% |
1 |
3.85% |
| David Howells |
4 |
1.46% |
1 |
3.85% |
| Colin Cross |
3 |
1.09% |
1 |
3.85% |
| Greg Kroah-Hartman |
1 |
0.36% |
1 |
3.85% |
| Matthew Garrett |
1 |
0.36% |
1 |
3.85% |
| Total |
274 |
|
26 |
|
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __PSTORE_INTERNAL_H__
#define __PSTORE_INTERNAL_H__
#include <linux/types.h>
#include <linux/time.h>
#include <linux/pstore.h>
extern unsigned int kmsg_bytes;
#ifdef CONFIG_PSTORE_FTRACE
extern unsigned long decode_ip(unsigned long ip);
extern void pstore_register_ftrace(void);
extern void pstore_unregister_ftrace(void);
ssize_t pstore_ftrace_combine_log(char **dest_log, size_t *dest_log_size,
const char *src_log, size_t src_log_size);
#else
static inline void pstore_register_ftrace(void) {}
static inline void pstore_unregister_ftrace(void) {}
static inline unsigned long decode_ip(unsigned long ip) { return ip; }
static inline ssize_t
pstore_ftrace_combine_log(char **dest_log, size_t *dest_log_size,
const char *src_log, size_t src_log_size)
{
*dest_log_size = 0;
return 0;
}
#endif
#ifdef CONFIG_PSTORE_PMSG
extern void pstore_register_pmsg(void);
extern void pstore_unregister_pmsg(void);
#else
static inline void pstore_register_pmsg(void) {}
static inline void pstore_unregister_pmsg(void) {}
#endif
extern struct pstore_info *psinfo;
extern void pstore_set_kmsg_bytes(unsigned int bytes);
extern void pstore_get_records(int);
extern void pstore_get_backend_records(struct pstore_info *psi,
struct dentry *root, int quiet);
extern int pstore_put_backend_records(struct pstore_info *psi);
extern int pstore_mkfile(struct dentry *root,
struct pstore_record *record);
extern void pstore_record_init(struct pstore_record *record,
struct pstore_info *psi);
/* Called during pstore init/exit. */
int __init pstore_init_fs(void);
void __exit pstore_exit_fs(void);
#endif