resampler: Add dtrace probes

pull/65/head
Andri Yngvason 2022-06-26 13:52:59 +00:00
parent ee64bc2722
commit e05e812d93
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,7 @@
#include "fb.h" #include "fb.h"
#include "transform-util.h" #include "transform-util.h"
#include "pixels.h" #include "pixels.h"
#include "usdt.h"
#include <stdlib.h> #include <stdlib.h>
#include <aml.h> #include <aml.h>
@ -170,6 +171,8 @@ int resampler_feed(struct resampler* self, struct nvnc_fb* fb,
struct pixman_region16* damage, resampler_fn on_done, struct pixman_region16* damage, resampler_fn on_done,
void* userdata) void* userdata)
{ {
DTRACE_PROBE2(neatvnc, resampler_feed, self, fb->pts);
if (fb->transform == NVNC_TRANSFORM_NORMAL) { if (fb->transform == NVNC_TRANSFORM_NORMAL) {
on_done(fb, damage, userdata); on_done(fb, damage, userdata);
return 0; return 0;