aboutsummaryrefslogtreecommitdiff
path: root/dump.h
diff options
context:
space:
mode:
authorWen Congyang <wency@cn.fujitsu.com>2012-05-07 12:08:56 +0800
committerLuiz Capitulino <lcapitulino@redhat.com>2012-06-04 13:49:34 -0300
commit25ae9c1d8bbfeb6c00eccb4297a5937d8375a44a (patch)
treed15cafeed4dfa79588681b0a48b7837353f0232e /dump.h
parent90166b71c4d75823b48a132e9394af35b9c90aaf (diff)
downloadqemu-25ae9c1d8bbfeb6c00eccb4297a5937d8375a44a.zip
qemu-25ae9c1d8bbfeb6c00eccb4297a5937d8375a44a.tar.gz
qemu-25ae9c1d8bbfeb6c00eccb4297a5937d8375a44a.tar.bz2
target-i386: add API to get dump info
Dump info contains: endian, class and architecture. The next patch will use these information to create vmcore. Note: on x86 box, the class is ELFCLASS64 if the memory is larger than 4G. Signed-off-by: Wen Congyang <wency@cn.fujitsu.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'dump.h')
-rw-r--r--dump.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/dump.h b/dump.h
new file mode 100644
index 0000000..28340cf
--- /dev/null
+++ b/dump.h
@@ -0,0 +1,23 @@
+/*
+ * QEMU dump
+ *
+ * Copyright Fujitsu, Corp. 2011, 2012
+ *
+ * Authors:
+ * Wen Congyang <wency@cn.fujitsu.com>
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2. See
+ * the COPYING file in the top-level directory.
+ *
+ */
+
+#ifndef DUMP_H
+#define DUMP_H
+
+typedef struct ArchDumpInfo {
+ int d_machine; /* Architecture */
+ int d_endian; /* ELFDATA2LSB or ELFDATA2MSB */
+ int d_class; /* ELFCLASS32 or ELFCLASS64 */
+} ArchDumpInfo;
+
+#endif