hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/include/linux/coredump.h
....@@ -7,6 +7,12 @@
77 #include <linux/fs.h>
88 #include <asm/siginfo.h>
99
10
+struct core_vma_metadata {
11
+ unsigned long start, end;
12
+ unsigned long flags;
13
+ unsigned long dump_size;
14
+};
15
+
1016 /*
1117 * These are the only things you should do on a core-file: use only these
1218 * functions to write out all the necessary info.
....@@ -16,10 +22,19 @@
1622 extern int dump_emit(struct coredump_params *cprm, const void *addr, int nr);
1723 extern int dump_align(struct coredump_params *cprm, int align);
1824 extern void dump_truncate(struct coredump_params *cprm);
25
+int dump_user_range(struct coredump_params *cprm, unsigned long start,
26
+ unsigned long len);
27
+int dump_vma_snapshot(struct coredump_params *cprm, int *vma_count,
28
+ struct core_vma_metadata **vma_meta,
29
+ size_t *vma_data_size_ptr);
1930 #ifdef CONFIG_COREDUMP
20
-extern void do_coredump(const siginfo_t *siginfo);
31
+extern void do_coredump(const kernel_siginfo_t *siginfo);
2132 #else
22
-static inline void do_coredump(const siginfo_t *siginfo) {}
33
+static inline void do_coredump(const kernel_siginfo_t *siginfo) {}
2334 #endif
2435
36
+extern int core_uses_pid;
37
+extern char core_pattern[];
38
+extern unsigned int core_pipe_limit;
39
+
2540 #endif /* _LINUX_COREDUMP_H */