From ee64bc27229149b08eca667a12278bc9457fa8e4 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sun, 26 Jun 2022 13:52:45 +0000 Subject: [PATCH] display: Add dtrace probes --- src/display.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/display.c b/src/display.c index 3fe9b59..072a5ad 100644 --- a/src/display.c +++ b/src/display.c @@ -21,6 +21,7 @@ #include "resampler.h" #include "transform-util.h" #include "encoder.h" +#include "usdt.h" #include #include @@ -32,6 +33,8 @@ static void nvnc_display__on_resampler_done(struct nvnc_fb* fb, { struct nvnc_display* self = userdata; + DTRACE_PROBE2(neatvnc, nvnc_display__on_resampler_done, self, fb->pts); + if (self->buffer) { nvnc_fb_release(self->buffer); nvnc_fb_unref(self->buffer); @@ -114,6 +117,8 @@ EXPORT void nvnc_display_feed_buffer(struct nvnc_display* self, struct nvnc_fb* fb, struct pixman_region16* damage) { + DTRACE_PROBE2(neatvnc, nvnc_display_feed_buffer, self, fb->pts); + struct nvnc* server = self->server; assert(server);