aboutsummaryrefslogtreecommitdiff
path: root/hw/display/trace-events
diff options
context:
space:
mode:
authorDmitry Osipenko <dmitry.osipenko@collabora.com>2024-10-25 00:02:59 +0300
committerAlex Bennée <alex.bennee@linaro.org>2024-10-28 16:56:35 +0000
commitcd7ebf6bf2ca367fde49d73f662e700fd355741f (patch)
treec9caf359ccc2f7314cc513ace1317480e180bdaf /hw/display/trace-events
parentfdf250e5a37830615e324017cb3a503e84b3712c (diff)
downloadqemu-cd7ebf6bf2ca367fde49d73f662e700fd355741f.zip
qemu-cd7ebf6bf2ca367fde49d73f662e700fd355741f.tar.gz
qemu-cd7ebf6bf2ca367fde49d73f662e700fd355741f.tar.bz2
virtio-gpu: Use trace events for tracking number of in-flight fences
Replace printf's used for tracking of in-flight fence inc/dec events with tracing, for consistency with the rest of virtio-gpu code that uses tracing. Suggested-by: Marc-André Lureau <marcandre.lureau@gmail.com> Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com> Message-Id: <20241024210311.118220-2-dmitry.osipenko@collabora.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'hw/display/trace-events')
-rw-r--r--hw/display/trace-events2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/display/trace-events b/hw/display/trace-events
index 781f8a3..e212710 100644
--- a/hw/display/trace-events
+++ b/hw/display/trace-events
@@ -53,6 +53,8 @@ virtio_gpu_cmd_ctx_submit(uint32_t ctx, uint32_t size) "ctx 0x%x, size %d"
virtio_gpu_update_cursor(uint32_t scanout, uint32_t x, uint32_t y, const char *type, uint32_t res) "scanout %d, x %d, y %d, %s, res 0x%x"
virtio_gpu_fence_ctrl(uint64_t fence, uint32_t type) "fence 0x%" PRIx64 ", type 0x%x"
virtio_gpu_fence_resp(uint64_t fence) "fence 0x%" PRIx64
+virtio_gpu_inc_inflight_fences(uint32_t inflight) "in-flight+ %u"
+virtio_gpu_dec_inflight_fences(uint32_t inflight) "in-flight- %u"
# qxl.c
disable qxl_io_write_vga(int qid, const char *mode, uint32_t addr, uint32_t val) "%d %s addr=%u val=%u"