aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include/minidump.h
diff options
context:
space:
mode:
authorD Scott Phillips <scottph@FreeBSD.org>2020-09-21 22:21:59 +0000
committerD Scott Phillips <scottph@FreeBSD.org>2020-09-21 22:21:59 +0000
commit00e6614750deca2457373aecd5bfa7aebbde3865 (patch)
tree73c950caf7bef81919555e2270ded794535c1b37 /sys/amd64/include/minidump.h
parentab041f713aeccdf23b4805ffb71815c8d4aa9c88 (diff)
downloadsrc-00e6614750deca2457373aecd5bfa7aebbde3865.tar.gz
src-00e6614750deca2457373aecd5bfa7aebbde3865.zip
Sparsify the vm_page_dump bitmap
On Ampere Altra systems, the sparse population of RAM within the physical address space causes the vm_page_dump bitmap to be much larger than necessary, increasing the size from ~8 Mib to > 2 Gib (and overflowing `int` for the size). Changing the page dump bitmap also changes the minidump file format, so changes are also necessary in libkvm. Reviewed by: jhb Approved by: scottl (implicit) MFC after: 1 week Sponsored by: Ampere Computing, Inc. Differential Revision: https://reviews.freebsd.org/D26131
Notes
Notes: svn path=/head/; revision=365978
Diffstat (limited to 'sys/amd64/include/minidump.h')
-rw-r--r--sys/amd64/include/minidump.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/amd64/include/minidump.h b/sys/amd64/include/minidump.h
index 21bbdadc99dc..f3d10df49983 100644
--- a/sys/amd64/include/minidump.h
+++ b/sys/amd64/include/minidump.h
@@ -32,7 +32,7 @@
#define _MACHINE_MINIDUMP_H_ 1
#define MINIDUMP_MAGIC "minidump FreeBSD/amd64"
-#define MINIDUMP_VERSION 2
+#define MINIDUMP_VERSION 3
struct minidumphdr {
char magic[24];
@@ -43,6 +43,7 @@ struct minidumphdr {
uint64_t kernbase;
uint64_t dmapbase;
uint64_t dmapend;
+ uint32_t dumpavailsize;
};
#endif /* _MACHINE_MINIDUMP_H_ */