diff options
author | Juan Quintela <quintela@redhat.com> | 2023-04-26 19:04:06 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-05-03 11:24:19 +0200 |
commit | 947701cc1a591191684aaae37a9f81674a14b7ce (patch) | |
tree | ad217f1500345ea8acb3621d5fa08a3f80e3654b /migration/ram.c | |
parent | e232199aad7f744e696e6b8c57aecbacfb988554 (diff) |
migration: Move ram_stats to its own file migration-stats.[ch]
There is already include/qemu/stats.h, so stats.h was a bad idea.
We want this file to not depend on anything else, we will move all the
migration counters/stats to this struct.
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Lukas Straub <lukasstraub2@web.de>
Diffstat (limited to 'migration/ram.c')
-rw-r--r-- | migration/ram.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/migration/ram.c b/migration/ram.c index 89be3e3320..a6d5478ef8 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -36,6 +36,7 @@ #include "xbzrle.h" #include "ram.h" #include "migration.h" +#include "migration-stats.h" #include "migration/register.h" #include "migration/misc.h" #include "qemu-file.h" @@ -460,8 +461,6 @@ uint64_t ram_bytes_remaining(void) 0; } -RAMStats ram_counters; - void ram_transferred_add(uint64_t bytes) { if (runstate_is_running()) { |