[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 4/8] ui: add more tracing for dbus
From: |
marcandre . lureau |
Subject: |
[PULL 4/8] ui: add more tracing for dbus |
Date: |
Tue, 23 Jul 2024 00:06:14 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20240717171541.201525-2-marcandre.lureau@redhat.com>
---
audio/dbusaudio.c | 2 +-
ui/dbus-clipboard.c | 4 ++++
audio/trace-events | 2 +-
ui/trace-events | 2 ++
4 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/audio/dbusaudio.c b/audio/dbusaudio.c
index 60fcf643ec..095e739382 100644
--- a/audio/dbusaudio.c
+++ b/audio/dbusaudio.c
@@ -105,7 +105,7 @@ static size_t dbus_put_buffer_out(HWVoiceOut *hw, void
*buf, size_t size)
assert(buf == vo->buf + vo->buf_pos && vo->buf_pos + size <= vo->buf_size);
vo->buf_pos += size;
- trace_dbus_audio_put_buffer_out(size);
+ trace_dbus_audio_put_buffer_out(vo->buf_pos, vo->buf_size);
if (vo->buf_pos < vo->buf_size) {
return size;
diff --git a/ui/dbus-clipboard.c b/ui/dbus-clipboard.c
index fe7fcdecb6..fbb043abca 100644
--- a/ui/dbus-clipboard.c
+++ b/ui/dbus-clipboard.c
@@ -141,6 +141,8 @@ dbus_clipboard_qemu_request(QemuClipboardInfo *info,
const char *mimes[] = { MIME_TEXT_PLAIN_UTF8, NULL };
size_t n;
+ trace_dbus_clipboard_qemu_request(type);
+
if (type != QEMU_CLIPBOARD_TYPE_TEXT) {
/* unsupported atm */
return;
@@ -305,6 +307,8 @@ dbus_clipboard_grab(
return DBUS_METHOD_INVOCATION_HANDLED;
}
+ trace_dbus_clipboard_grab(arg_selection, arg_serial);
+
if (s >= QEMU_CLIPBOARD_SELECTION__COUNT) {
g_dbus_method_invocation_return_error(
invocation,
diff --git a/audio/trace-events b/audio/trace-events
index ab04f020ce..7e3f1593c8 100644
--- a/audio/trace-events
+++ b/audio/trace-events
@@ -15,7 +15,7 @@ oss_version(int version) "OSS version = 0x%x"
# dbusaudio.c
dbus_audio_register(const char *s, const char *dir) "sender = %s, dir = %s"
-dbus_audio_put_buffer_out(size_t len) "len = %zu"
+dbus_audio_put_buffer_out(size_t pos, size_t size) "buf_pos = %zu, buf_size =
%zu"
dbus_audio_read(size_t len) "len = %zu"
# pwaudio.c
diff --git a/ui/trace-events b/ui/trace-events
index 69ff22955d..07eb494246 100644
--- a/ui/trace-events
+++ b/ui/trace-events
@@ -157,7 +157,9 @@ dbus_mouse_rel_motion(int dx, int dy) "dx=%d, dy=%d"
dbus_touch_send_event(unsigned int kind, uint32_t num_slot, uint32_t x,
uint32_t y) "kind=%u, num_slot=%u, x=%d, y=%d"
dbus_update(int x, int y, int w, int h) "x=%d, y=%d, w=%d, h=%d"
dbus_update_gl(int x, int y, int w, int h) "x=%d, y=%d, w=%d, h=%d"
+dbus_clipboard_grab(int selection, unsigned int serial) "selection=%d
serial=%u"
dbus_clipboard_grab_failed(void) ""
+dbus_clipboard_qemu_request(int type) "type=%d"
dbus_clipboard_register(const char *bus_name) "peer %s"
dbus_clipboard_unregister(const char *bus_name) "peer %s"
dbus_scanout_texture(uint32_t tex_id, bool backing_y_0_top, uint32_t
backing_width, uint32_t backing_height, uint32_t x, uint32_t y, uint32_t w,
uint32_t h) "tex_id:%u y0top:%d back:%ux%u %u+%u-%ux%u"
--
2.45.2.827.g557ae147e6
- [PULL 0/8] Ui patches, marcandre . lureau, 2024/07/22
- [PULL 1/8] vnc: increase max display size, marcandre . lureau, 2024/07/22
- [PULL 2/8] virtio-gpu-gl: declare dependency on ui-opengl, marcandre . lureau, 2024/07/22
- [PULL 3/8] Cursor: 8 -> 1 bit alpha downsampling improvement, marcandre . lureau, 2024/07/22
- [PULL 4/8] ui: add more tracing for dbus,
marcandre . lureau <=
- [PULL 5/8] ui/vdagent: improve vdagent_fe_open() trace, marcandre . lureau, 2024/07/22
- [PULL 7/8] ui/vdagent: send caps on fe_open, marcandre . lureau, 2024/07/22
- [PULL 6/8] ui/vdagent: notify clipboard peers of serial reset, marcandre . lureau, 2024/07/22
- [PULL 8/8] chardev/char-win-stdio.c: restore old console mode, marcandre . lureau, 2024/07/22
- Re: [PULL 0/8] Ui patches, Philippe Mathieu-Daudé, 2024/07/22
- Re: [PULL 0/8] Ui patches, Richard Henderson, 2024/07/23