svn commit: r335227 - head/sys/sys
Conrad Meyer
cem at FreeBSD.org
Fri Jun 15 19:02:54 UTC 2018
Author: cem
Date: Fri Jun 15 19:02:53 2018
New Revision: 335227
URL: https://svnweb.freebsd.org/changeset/base/335227
Log:
Retain offset compatibility with pre-12.0 dumps
As a follow-up to r324965, which adds support for compressed kernel dumps,
readjust dump header members slightly to mostly preserve ABI with earlier
(11.x and older) dumps.
Reviewed by: markj
X-MFC-With: r324965
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D15829
Modified:
head/sys/sys/kerneldump.h
Modified: head/sys/sys/kerneldump.h
==============================================================================
--- head/sys/sys/kerneldump.h Fri Jun 15 18:55:02 2018 (r335226)
+++ head/sys/sys/kerneldump.h Fri Jun 15 19:02:53 2018 (r335227)
@@ -81,8 +81,8 @@ struct kerneldumpheader {
#define KERNELDUMPMAGIC_CLEARED "Cleared Kernel Dump"
char architecture[12];
uint32_t version;
-#define KERNELDUMPVERSION 3
-#define KERNELDUMP_TEXT_VERSION 3
+#define KERNELDUMPVERSION 4
+#define KERNELDUMP_TEXT_VERSION 4
uint32_t architectureversion;
#define KERNELDUMP_AARCH64_VERSION 1
#define KERNELDUMP_AMD64_VERSION 2
@@ -93,14 +93,15 @@ struct kerneldumpheader {
#define KERNELDUMP_RISCV_VERSION 1
#define KERNELDUMP_SPARC64_VERSION 1
uint64_t dumplength; /* excl headers */
- uint64_t dumpextent;
uint64_t dumptime;
uint32_t dumpkeysize;
uint32_t blocksize;
- uint8_t compression;
char hostname[64];
char versionstring[192];
- char panicstring[179];
+ char panicstring[175];
+ uint8_t compression;
+ uint64_t dumpextent;
+ char unused[4];
uint32_t parity;
};
More information about the svn-src-all
mailing list