PERFORCE change 131136 for review

Peter Wemm peter at FreeBSD.org
Mon Dec 17 15:07:54 PST 2007


http://perforce.freebsd.org/chv.cgi?CH=131136

Change 131136 by peter at peter_daintree on 2007/12/17 23:07:25

	Store the build_uuid in the minidump header.

Affected files ...

.. //depot/projects/hammer/sys/amd64/amd64/minidump_machdep.c#3 edit
.. //depot/projects/hammer/sys/amd64/include/minidump.h#2 edit

Differences ...

==== //depot/projects/hammer/sys/amd64/amd64/minidump_machdep.c#3 (text) ====

@@ -34,6 +34,7 @@
 #include <sys/kernel.h>
 #include <sys/kerneldump.h>
 #include <sys/msgbuf.h>
+#include <sys/sysctl.h>
 #include <vm/vm.h>
 #include <vm/pmap.h>
 #include <machine/atomic.h>
@@ -277,6 +278,7 @@
 	mdhdr.kernbase = KERNBASE;
 	mdhdr.dmapbase = DMAP_MIN_ADDRESS;
 	mdhdr.dmapend = DMAP_MAX_ADDRESS;
+	strncpy(mdhdr.build_uuid, build_uuid, sizeof(mdhdr.build_uuid) - 1);
 
 	mkdumpheader(&kdh, KERNELDUMP_AMD64_VERSION, dumpsize, di->blocksize);
 

==== //depot/projects/hammer/sys/amd64/include/minidump.h#2 (text) ====

@@ -41,6 +41,7 @@
 	uint64_t kernbase;
 	uint64_t dmapbase;
 	uint64_t dmapend;
+	char build_uuid[40];
 };
 
 #endif /* _MACHINE_MINIDUMP_H_ */


More information about the p4-projects mailing list