Rename "tsc" to "timestamp"
[lttng-modules.git] / src / lttng-context-need-reschedule.c
index 42cf11db03992db5694c6c038fcb81464a152004..bc8bdff14b4594656570d54f51bd611551b9419d 100644 (file)
@@ -34,8 +34,7 @@ void need_reschedule_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx
 {
        uint8_t need_reschedule = test_tsk_need_resched(current);
 
-       lib_ring_buffer_align_ctx(ctx, lttng_alignof(need_reschedule));
-       chan->ops->event_write(ctx, &need_reschedule, sizeof(need_reschedule));
+       chan->ops->event_write(ctx, &need_reschedule, sizeof(need_reschedule), lttng_alignof(need_reschedule));
 }
 
 static
@@ -49,7 +48,7 @@ void need_reschedule_get_value(void *priv,
 static const struct lttng_kernel_ctx_field *ctx_field = lttng_kernel_static_ctx_field(
        lttng_kernel_static_event_field("need_reschedule",
                lttng_kernel_static_type_integer_from_type(uint8_t, __BYTE_ORDER, 10),
-               false, false, false),
+               false, false),
        need_reschedule_get_size,
        need_reschedule_record,
        need_reschedule_get_value,
This page took 0.023871 seconds and 4 git commands to generate.