[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/4] ui/vdagent: improve vdagent_fe_open() trace
From: |
marcandre . lureau |
Subject: |
[PATCH 2/4] ui/vdagent: improve vdagent_fe_open() trace |
Date: |
Wed, 17 Jul 2024 21:15:38 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Place the trace when the function enters, with arg value.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
ui/vdagent.c | 3 ++-
ui/trace-events | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/ui/vdagent.c b/ui/vdagent.c
index 64d7ab245a..cb74739bc4 100644
--- a/ui/vdagent.c
+++ b/ui/vdagent.c
@@ -872,6 +872,8 @@ static void vdagent_chr_set_fe_open(struct Chardev *chr,
int fe_open)
{
VDAgentChardev *vd = QEMU_VDAGENT_CHARDEV(chr);
+ trace_vdagent_fe_open(fe_open);
+
if (!fe_open) {
trace_vdagent_close();
vdagent_disconnect(vd);
@@ -881,7 +883,6 @@ static void vdagent_chr_set_fe_open(struct Chardev *chr,
int fe_open)
return;
}
- trace_vdagent_open();
}
static void vdagent_chr_parse(QemuOpts *opts, ChardevBackend *backend,
diff --git a/ui/trace-events b/ui/trace-events
index 07eb494246..f5faa149d2 100644
--- a/ui/trace-events
+++ b/ui/trace-events
@@ -132,7 +132,7 @@ xkeymap_keymap(const char *name) "keymap '%s'"
clipboard_check_serial(int cur, int recv, bool ok) "cur:%d recv:%d %d"
# vdagent.c
-vdagent_open(void) ""
+vdagent_fe_open(bool fe_open) "fe_open=%d"
vdagent_close(void) ""
vdagent_disconnect(void) ""
vdagent_send(const char *name) "msg %s"
--
2.45.2.827.g557ae147e6
- [PATCH 0/4] ui: fixes for dbus clipboard hanling, marcandre . lureau, 2024/07/17
- [PATCH 1/4] ui: add more tracing for dbus, marcandre . lureau, 2024/07/17
- [PATCH 2/4] ui/vdagent: improve vdagent_fe_open() trace,
marcandre . lureau <=
- [PATCH 3/4] ui/vdagent: notify clipboard peers of serial reset, marcandre . lureau, 2024/07/17
- [PATCH 4/4] ui/vdagent: send caps on fe_open, marcandre . lureau, 2024/07/17
- Re: [PATCH 0/4] ui: fixes for dbus clipboard hanling, Philippe Mathieu-Daudé, 2024/07/18
- Re: [PATCH 0/4] ui: fixes for dbus clipboard hanling, Akihiko Odaki, 2024/07/23