[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v10 13/14] migration: Add multifd_send_packet trace
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH v10 13/14] migration: Add multifd_send_packet trace |
Date: |
Wed, 10 Jan 2018 13:47:22 +0100 |
I need the block name, so I can't do that sooner.
Signed-off-by: Juan Quintela <address@hidden>
---
migration/ram.c | 2 ++
migration/trace-events | 1 +
2 files changed, 3 insertions(+)
diff --git a/migration/ram.c b/migration/ram.c
index f636c7da0a..6e45f668d1 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -705,6 +705,8 @@ static uint16_t multifd_send_page(RAMBlock *block,
ram_addr_t offset,
multifd_send_state->pages = p->pages;
p->pages = pages;
qemu_mutex_unlock(&p->mutex);
+ trace_multifd_send_packet(p->id, p->pages->block->idstr, p->pages->seq,
+ p->pages->used, last_page);
qemu_sem_post(&p->sem);
return i;
diff --git a/migration/trace-events b/migration/trace-events
index 06aef4d4a3..598620c58e 100644
--- a/migration/trace-events
+++ b/migration/trace-events
@@ -81,6 +81,7 @@ multifd_recv(char id, int seq, int num) "channel %d sequence
%d num pages %d"
multifd_send(char id, int seq, int num) "channel %d sequence %d num pages %d"
multifd_recv_thread(char id, uint32_t packets) "channel %d packets %d"
multifd_send_thread(char id, uint32_t packets) "channel %d packets %d"
+multifd_send_packet(char id, char *block_name, uint32_t seq, uint32_t
packets_used, bool last) "channel %d block %s seq %d used %d last %d"
# migration/migration.c
await_return_path_close_on_source_close(void) ""
--
2.14.3
- [Qemu-devel] [PATCH v10 08/14] migration: Transfer pages over new channels, (continued)
- [Qemu-devel] [PATCH v10 08/14] migration: Transfer pages over new channels, Juan Quintela, 2018/01/10
- [Qemu-devel] [PATCH v10 06/14] migration: Send the fd number which we are going to use for this page, Juan Quintela, 2018/01/10
- [Qemu-devel] [PATCH v10 11/14] LOCAL: use trace events for migration-test, Juan Quintela, 2018/01/10
- [Qemu-devel] [PATCH v10 10/14] migration: Add multifd test, Juan Quintela, 2018/01/10
- [Qemu-devel] [PATCH v10 09/14] migration: Flush receive queue, Juan Quintela, 2018/01/10
- [Qemu-devel] [PATCH v10 12/14] migration: Sent the page list over the normal thread, Juan Quintela, 2018/01/10
- [Qemu-devel] [PATCH v10 13/14] migration: Add multifd_send_packet trace,
Juan Quintela <=
- [Qemu-devel] [PATCH v10 14/14] all works, Juan Quintela, 2018/01/10
- Re: [Qemu-devel] [RFC 00/14] Multifd, Juan Quintela, 2018/01/10