From 4f2e425267327719ee71ba6f191f7d66507a6c02 Mon Sep 17 00:00:00 2001 From: Dr. David Alan Gilbert Date: Thu, 5 Nov 2015 18:10:38 +0000 Subject: ram_debug_dump_bitmap: Dump a migration bitmap as text Useful for debugging the migration bitmap and other bitmaps of the same format (including the sentmap in postcopy). The bitmap is printed to stderr. Lines that are all the expected value are excluded so the output can be quite compact for many bitmaps. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Amit Shah Reviewed-by: Juan Quintela Signed-off-by: Juan Quintela --- include/migration/migration.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/migration/migration.h b/include/migration/migration.h index 83fba23511..51bc348fc2 100644 --- a/include/migration/migration.h +++ b/include/migration/migration.h @@ -145,6 +145,7 @@ uint64_t xbzrle_mig_pages_cache_miss(void); double xbzrle_mig_cache_miss_rate(void); void ram_handle_compressed(void *host, uint8_t ch, uint64_t size); +void ram_debug_dump_bitmap(unsigned long *todump, bool expected); /** * @migrate_add_blocker - prevent migration from proceeding -- cgit v1.2.3-55-g7522