Fix: pass private data to context callbacks
[lttng-ust.git] / libcounter / counter.c
index 91506faf084fcbdf253855f35ff34e50b0017924..a825ac95e0020b0814770499b449ba157ec36a38 100644 (file)
@@ -5,26 +5,27 @@
  * Copyright (C) 2020 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
  */
 
-#define _GNU_SOURCE
 #include <errno.h>
 #include "counter.h"
 #include "counter-internal.h"
-#include <lttng/bitmap.h>
 #include <urcu/system.h>
 #include <urcu/compiler.h>
 #include <stdbool.h>
-#include <helper.h>
-#include <lttng/align.h>
+#include <ust-helper.h>
 #include "smp.h"
 #include "shm.h"
+#include "ust-compat.h"
+
+#include "ust-bitmap.h"
 
 static size_t lttng_counter_get_dimension_nr_elements(struct lib_counter_dimension *dimension)
 {
        return dimension->max_nr_elem;
 }
 
-static int lttng_counter_init_stride(const struct lib_counter_config *config,
-                                     struct lib_counter *counter)
+static int lttng_counter_init_stride(
+               const struct lib_counter_config *config __attribute__((unused)),
+               struct lib_counter *counter)
 {
        size_t nr_dimensions = counter->nr_dimensions;
        size_t stride = 1;
@@ -162,7 +163,7 @@ int lttng_counter_set_global_sum_step(struct lib_counter *counter,
 
 static
 int validate_args(const struct lib_counter_config *config,
-       size_t nr_dimensions,
+       size_t nr_dimensions __attribute__((unused)),
        const size_t *max_nr_elem,
        int64_t global_sum_step,
        int global_counter_fd,
This page took 0.023326 seconds and 4 git commands to generate.