Rename "tsc" to "timestamp"
[lttng-modules.git] / src / lttng-context-cpu-id.c
index 24241dee7f511b5ecdd47f4b7682f4daf7e20d08..af36409e03ee899af40adb0e37272288b9a39c20 100644 (file)
@@ -34,8 +34,7 @@ void cpu_id_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
        int cpu;
 
        cpu = ctx->priv.reserve_cpu;
-       lib_ring_buffer_align_ctx(ctx, lttng_alignof(cpu));
-       chan->ops->event_write(ctx, &cpu, sizeof(cpu));
+       chan->ops->event_write(ctx, &cpu, sizeof(cpu), lttng_alignof(cpu));
 }
 
 static
@@ -49,7 +48,7 @@ void cpu_id_get_value(void *priv,
 static const struct lttng_kernel_ctx_field *ctx_field = lttng_kernel_static_ctx_field(
        lttng_kernel_static_event_field("cpu_id",
                lttng_kernel_static_type_integer_from_type(int, __BYTE_ORDER, 10),
-               false, false, false),
+               false, false),
        cpu_id_get_size,
        cpu_id_record,
        cpu_id_get_value,
This page took 0.023611 seconds and 4 git commands to generate.