#define _LGPL_SOURCE
#include <assert.h>
-#include <byteswap.h>
#include <errno.h>
#include <lttng/ust-events.h>
+#include <lttng/ust-endian.h>
#include <usterr-signal-safe.h>
#include "../libmsgpack/msgpack.h"
size_t dimension_index[1];
int ret;
+ /* This group may not have an error counter attached to it. */
+ if (!event_notifier_group->error_counter)
+ return;
+
dimension_index[0] = event_notifier->error_counter_index;
ret = event_notifier_group->error_counter->ops->counter_add(
event_notifier_group->error_counter->counter,