Add 'ctf_unused' tracepoint field type
[lttng-ust.git] / liblttng-ust / lttng-context-perf-counters.c
index 3a00a7fabdb8f9de00e34428de0315c37e710b48..dac953ffe961852dc21ce01cf85c3f7c66431929 100644 (file)
@@ -158,7 +158,8 @@ void lttng_perf_unlock(void)
 }
 
 static
-size_t perf_counter_get_size(struct lttng_ust_ctx_field *field, size_t offset)
+size_t perf_counter_get_size(struct lttng_ust_ctx_field *field __attribute__((unused)),
+               size_t offset)
 {
        size_t size = 0;
 
@@ -445,8 +446,7 @@ void perf_counter_record(struct lttng_ust_ctx_field *field,
        uint64_t value;
 
        value = wrapper_perf_counter_read(field);
-       lttng_ust_lib_ring_buffer_align_ctx(ctx, lttng_ust_rb_alignof(value));
-       chan->ops->event_write(ctx, &value, sizeof(value));
+       chan->ops->event_write(ctx, &value, sizeof(value), lttng_ust_rb_alignof(value));
 }
 
 static
This page took 0.025973 seconds and 4 git commands to generate.