display: Add dtrace probes

pull/65/head
Andri Yngvason 2022-06-26 13:52:45 +00:00
parent 4e9eb98301
commit ee64bc2722
1 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,7 @@
#include "resampler.h" #include "resampler.h"
#include "transform-util.h" #include "transform-util.h"
#include "encoder.h" #include "encoder.h"
#include "usdt.h"
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
@ -32,6 +33,8 @@ static void nvnc_display__on_resampler_done(struct nvnc_fb* fb,
{ {
struct nvnc_display* self = userdata; struct nvnc_display* self = userdata;
DTRACE_PROBE2(neatvnc, nvnc_display__on_resampler_done, self, fb->pts);
if (self->buffer) { if (self->buffer) {
nvnc_fb_release(self->buffer); nvnc_fb_release(self->buffer);
nvnc_fb_unref(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, void nvnc_display_feed_buffer(struct nvnc_display* self, struct nvnc_fb* fb,
struct pixman_region16* damage) struct pixman_region16* damage)
{ {
DTRACE_PROBE2(neatvnc, nvnc_display_feed_buffer, self, fb->pts);
struct nvnc* server = self->server; struct nvnc* server = self->server;
assert(server); assert(server);