resampler: Add dtrace probes
parent
ee64bc2722
commit
e05e812d93
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue