summaryrefslogtreecommitdiff
path: root/vmstate.c
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2014-03-11 10:42:29 +1100
committerAmit Shah <amit.shah@redhat.com>2014-03-27 15:19:00 +0530
commit9013dca5539186ddca018bebcf2d5da63d061365 (patch)
treeb101429b2b6bdcdf14348606a4d45329ea8d821a /vmstate.c
parent4297c8ee6f0ef70e5a71e3387a0fccaa20b04f94 (diff)
downloadqemu-9013dca5539186ddca018bebcf2d5da63d061365.tar.gz
qemu-9013dca5539186ddca018bebcf2d5da63d061365.tar.bz2
qemu-9013dca5539186ddca018bebcf2d5da63d061365.zip
migration: add more traces
This replaces DPRINTF macro with tracepoints. This moves some messages from migration.c to savevm.c. This adds tracepoint to signal about fileds failed to migrate. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Amit Shah <amit.shah@redhat.com>
Diffstat (limited to 'vmstate.c')
-rw-r--r--vmstate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vmstate.c b/vmstate.c
index d1f5eb0e6a..b689f2f9b3 100644
--- a/vmstate.c
+++ b/vmstate.c
@@ -3,6 +3,7 @@
#include "migration/qemu-file.h"
#include "migration/vmstate.h"
#include "qemu/bitops.h"
+#include "trace.h"
static void vmstate_subsection_save(QEMUFile *f, const VMStateDescription *vmsd,
void *opaque);
@@ -73,6 +74,7 @@ int vmstate_load_state(QEMUFile *f, const VMStateDescription *vmsd,
}
if (ret < 0) {
+ trace_vmstate_load_field_error(field->name, ret);
return ret;
}
}