Daisuke HATAYAMA | 088e7af | 2010-03-05 13:44:06 -0800 | [diff] [blame] | 1 | #ifndef _LINUX_COREDUMP_H |
| 2 | #define _LINUX_COREDUMP_H |
| 3 | |
| 4 | #include <linux/types.h> |
| 5 | #include <linux/mm.h> |
| 6 | #include <linux/fs.h> |
Richard Weinberger | 1d46e23 | 2012-10-19 13:56:47 -0700 | [diff] [blame] | 7 | #include <asm/siginfo.h> |
Daisuke HATAYAMA | 088e7af | 2010-03-05 13:44:06 -0800 | [diff] [blame] | 8 | |
| 9 | /* |
| 10 | * These are the only things you should do on a core-file: use only these |
| 11 | * functions to write out all the necessary info. |
| 12 | */ |
Al Viro | ecc8c77 | 2013-10-05 15:32:35 -0400 | [diff] [blame] | 13 | struct coredump_params; |
Al Viro | 9b56d54 | 2013-10-08 09:26:08 -0400 | [diff] [blame] | 14 | extern int dump_skip(struct coredump_params *cprm, size_t nr); |
Al Viro | ecc8c77 | 2013-10-05 15:32:35 -0400 | [diff] [blame] | 15 | extern int dump_emit(struct coredump_params *cprm, const void *addr, int nr); |
Al Viro | 22a8cb8 | 2013-10-08 11:05:01 -0400 | [diff] [blame] | 16 | extern int dump_align(struct coredump_params *cprm, int align); |
Alex Kelly | 179899f | 2012-10-04 17:15:24 -0700 | [diff] [blame] | 17 | #ifdef CONFIG_COREDUMP |
Al Viro | ec57941 | 2013-10-13 17:57:29 -0400 | [diff] [blame] | 18 | extern void do_coredump(const siginfo_t *siginfo); |
Alex Kelly | 179899f | 2012-10-04 17:15:24 -0700 | [diff] [blame] | 19 | #else |
Al Viro | ec57941 | 2013-10-13 17:57:29 -0400 | [diff] [blame] | 20 | static inline void do_coredump(const siginfo_t *siginfo) {} |
Alex Kelly | 179899f | 2012-10-04 17:15:24 -0700 | [diff] [blame] | 21 | #endif |
Daisuke HATAYAMA | 088e7af | 2010-03-05 13:44:06 -0800 | [diff] [blame] | 22 | |
| 23 | #endif /* _LINUX_COREDUMP_H */ |