diff options
author | Juan Quintela <quintela@redhat.com> | 2012-09-04 13:08:57 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2012-10-17 18:34:58 +0200 |
commit | 3c12193d998249bcbe5099edf85039bcd25c3a80 (patch) | |
tree | c304ffd533682ff20de6b5f7944e7dd178252c5d /arch_init.c | |
parent | dd2df737ef3930f6d88116520d6ca7ff3cf0c41f (diff) | |
download | qemu-3c12193d998249bcbe5099edf85039bcd25c3a80.zip qemu-3c12193d998249bcbe5099edf85039bcd25c3a80.tar.gz qemu-3c12193d998249bcbe5099edf85039bcd25c3a80.tar.bz2 |
ram: create trace event for migration sync bitmap
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch_init.c')
-rw-r--r-- | arch_init.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch_init.c b/arch_init.c index 3a5fecc..cec3ead 100644 --- a/arch_init.c +++ b/arch_init.c @@ -45,6 +45,7 @@ #include "hw/pcspk.h" #include "qemu/page_cache.h" #include "qmp-commands.h" +#include "trace.h" #ifdef DEBUG_ARCH_INIT #define DPRINTF(fmt, ...) \ @@ -358,7 +359,12 @@ static inline void migration_bitmap_set_dirty(MemoryRegion *mr, int length) static void migration_bitmap_sync(void) { + uint64_t num_dirty_pages_init = ram_list.dirty_pages; + + trace_migration_bitmap_sync_start(); memory_global_sync_dirty_bitmap(get_system_memory()); + trace_migration_bitmap_sync_end(ram_list.dirty_pages + - num_dirty_pages_init); } |