Rename "tsc" to "timestamp"
[lttng-modules.git] / src / lttng-context-cpu-id.c
index 9e1d71a29725116c3f5cf4c8eeeef31587d17e6e..af36409e03ee899af40adb0e37272288b9a39c20 100644 (file)
@@ -17,7 +17,7 @@
 #include <lttng/tracer.h>
 
 static
-size_t cpu_id_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t cpu_id_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
 {
        size_t size = 0;
 
@@ -27,20 +27,19 @@ size_t cpu_id_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t off
 }
 
 static
-void cpu_id_record(void *priv, struct lttng_probe_ctx *probe_ctx,
-               struct lib_ring_buffer_ctx *ctx,
-               struct lttng_channel *chan)
+void cpu_id_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
+               struct lttng_kernel_ring_buffer_ctx *ctx,
+               struct lttng_kernel_channel_buffer *chan)
 {
        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
 void cpu_id_get_value(void *priv,
-               struct lttng_probe_ctx *lttng_probe_ctx,
+               struct lttng_kernel_probe_ctx *lttng_probe_ctx,
                struct lttng_ctx_value *value)
 {
        value->u.s64 = smp_processor_id();
@@ -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.023194 seconds and 4 git commands to generate.