|
@@ -158,6 +158,7 @@ typedef struct CPUClass {
|
|
|
uint8_t *buf, int len, bool is_write);
|
|
|
void (*dump_state)(CPUState *cpu, FILE *f, fprintf_function cpu_fprintf,
|
|
|
int flags);
|
|
|
+ GuestPanicInformation* (*get_crash_info)(CPUState *cpu);
|
|
|
void (*dump_statistics)(CPUState *cpu, FILE *f,
|
|
|
fprintf_function cpu_fprintf, int flags);
|
|
|
int64_t (*get_arch_id)(CPUState *cpu);
|
|
@@ -471,6 +472,15 @@ int cpu_write_elf32_note(WriteCoreDumpFunction f, CPUState *cpu,
|
|
|
int cpu_write_elf32_qemunote(WriteCoreDumpFunction f, CPUState *cpu,
|
|
|
void *opaque);
|
|
|
|
|
|
+/**
|
|
|
+ * cpu_get_crash_info:
|
|
|
+ * @cpu: The CPU to get crash information for
|
|
|
+ *
|
|
|
+ * Gets the previously saved crash information.
|
|
|
+ * Caller is responsible for freeing the data.
|
|
|
+ */
|
|
|
+GuestPanicInformation *cpu_get_crash_info(CPUState *cpu);
|
|
|
+
|
|
|
/**
|
|
|
* CPUDumpFlags:
|
|
|
* @CPU_DUMP_CODE:
|