aboutsummaryrefslogtreecommitdiff
path: root/migration/trace-events
diff options
context:
space:
mode:
authorFabiano Rosas <farosas@suse.de>2023-10-12 10:43:43 -0300
committerJuan Quintela <quintela@redhat.com>2023-10-17 09:25:14 +0200
commit967e3889874b1116090a60c0cb43157130bdbd16 (patch)
tree6b4831de22ad6d8f884073bd985889c34ddb26d3 /migration/trace-events
parentee8a7c9c46b8f06969a975ac3fd3fd30491611a7 (diff)
downloadqemu-967e3889874b1116090a60c0cb43157130bdbd16.zip
qemu-967e3889874b1116090a60c0cb43157130bdbd16.tar.gz
qemu-967e3889874b1116090a60c0cb43157130bdbd16.tar.bz2
migration/multifd: Clarify Error usage in multifd_channel_connect
The function is currently called from two sites, one always gives it a NULL Error and the other always gives it a non-NULL Error. In the non-NULL case, all it does it trace the error and return. One of the callers already have tracing, add a tracepoint to the other and stop passing the error into the function. Cc: Markus Armbruster <armbru@redhat.com> Signed-off-by: Fabiano Rosas <farosas@suse.de> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com> Message-ID: <20231012134343.23757-4-farosas@suse.de>
Diffstat (limited to 'migration/trace-events')
-rw-r--r--migration/trace-events3
1 files changed, 2 insertions, 1 deletions
diff --git a/migration/trace-events b/migration/trace-events
index 403cc1a..fa9486d 100644
--- a/migration/trace-events
+++ b/migration/trace-events
@@ -125,6 +125,7 @@ postcopy_preempt_reset_channel(void) ""
# multifd.c
multifd_new_send_channel_async(uint8_t id) "channel %u"
+multifd_new_send_channel_async_error(uint8_t id, void *err) "channel=%u err=%p"
multifd_recv(uint8_t id, uint64_t packet_num, uint32_t used, uint32_t flags, uint32_t next_packet_size) "channel %u packet_num %" PRIu64 " pages %u flags 0x%x next packet size %u"
multifd_recv_new_channel(uint8_t id) "channel %u"
multifd_recv_sync_main(long packet_num) "packet num %ld"
@@ -144,7 +145,7 @@ multifd_send_thread_start(uint8_t id) "%u"
multifd_tls_outgoing_handshake_start(void *ioc, void *tioc, const char *hostname) "ioc=%p tioc=%p hostname=%s"
multifd_tls_outgoing_handshake_error(void *ioc, const char *err) "ioc=%p err=%s"
multifd_tls_outgoing_handshake_complete(void *ioc) "ioc=%p"
-multifd_set_outgoing_channel(void *ioc, const char *ioctype, const char *hostname, void *err) "ioc=%p ioctype=%s hostname=%s err=%p"
+multifd_set_outgoing_channel(void *ioc, const char *ioctype, const char *hostname) "ioc=%p ioctype=%s hostname=%s"
# migration.c
await_return_path_close_on_source_close(void) ""