X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Flttng-context-perf-counters.c;h=b0227d474e4d5388138bf3e6ae36bc33eaf75fec;hb=d46165d904839b80999e99dcfd6a4d98d19175c6;hp=0b466363235b2a91e307645dbd1b2cef107e9419;hpb=ac847066a7e106d38fd18587044622d050dc86a1;p=lttng-modules.git diff --git a/src/lttng-context-perf-counters.c b/src/lttng-context-perf-counters.c index 0b466363..b0227d47 100644 --- a/src/lttng-context-perf-counters.c +++ b/src/lttng-context-perf-counters.c @@ -57,8 +57,7 @@ void perf_counter_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, */ value = 0; } - lib_ring_buffer_align_ctx(ctx, lttng_alignof(value)); - chan->ops->event_write(ctx, &value, sizeof(value)); + chan->ops->event_write(ctx, &value, sizeof(value), lttng_alignof(value)); } #if defined(CONFIG_PERF_EVENTS) && (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,1,0))