]> git.proxmox.com Git - mirror_qemu.git/commitdiff
io: add trace event when cancelling TLS handshake
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 5 Jan 2024 15:48:07 +0000 (15:48 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 9 Feb 2024 12:50:31 +0000 (12:50 +0000)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
io/channel-tls.c
io/trace-events

index 58fe1aceeeafd473dfb3fde267f18eccee6bdb65..1d9c9c72bfb0e44aa213fccee18fd1da2c20a5e1 100644 (file)
@@ -381,6 +381,7 @@ static int qio_channel_tls_close(QIOChannel *ioc,
     QIOChannelTLS *tioc = QIO_CHANNEL_TLS(ioc);
 
     if (tioc->hs_ioc_tag) {
+        trace_qio_channel_tls_handshake_cancel(ioc);
         g_clear_handle_id(&tioc->hs_ioc_tag, g_source_remove);
     }
 
index 3cc5cf1efdf398b25701f3ea3aba61c1b6c6b435..d4c0f84a9a2fc6e1fc7a01bec5483549e18ce587 100644 (file)
@@ -43,6 +43,7 @@ qio_channel_tls_handshake_start(void *ioc) "TLS handshake start ioc=%p"
 qio_channel_tls_handshake_pending(void *ioc, int status) "TLS handshake pending ioc=%p status=%d"
 qio_channel_tls_handshake_fail(void *ioc) "TLS handshake fail ioc=%p"
 qio_channel_tls_handshake_complete(void *ioc) "TLS handshake complete ioc=%p"
+qio_channel_tls_handshake_cancel(void *ioc) "TLS handshake cancel ioc=%p"
 qio_channel_tls_credentials_allow(void *ioc) "TLS credentials allow ioc=%p"
 qio_channel_tls_credentials_deny(void *ioc) "TLS credentials deny ioc=%p"