mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
ram: create trace event for migration sync bitmap
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
dd2df737ef
commit
3c12193d99
2 changed files with 10 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue