X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Flttng-context-euid.c;h=ace9f8008533ad99cfd29a6c26ae7f912b7ef120;hb=7aedbe65997b1e6ef3ea034ab11c61482ffad232;hp=6076a3161ffd9ef0889923dfa4e358ff153a31c8;hpb=8a57ec025ffbe56153748fd69b60118862707182;p=lttng-modules.git diff --git a/src/lttng-context-euid.c b/src/lttng-context-euid.c index 6076a316..ace9f800 100644 --- a/src/lttng-context-euid.c +++ b/src/lttng-context-euid.c @@ -31,13 +31,12 @@ size_t euid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_ static void euid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, struct lttng_kernel_ring_buffer_ctx *ctx, - struct lttng_channel *chan) + struct lttng_kernel_channel_buffer *chan) { uid_t euid; euid = lttng_current_euid(); - lib_ring_buffer_align_ctx(ctx, lttng_alignof(euid)); - chan->ops->event_write(ctx, &euid, sizeof(euid)); + chan->ops->event_write(ctx, &euid, sizeof(euid), lttng_alignof(euid)); } static @@ -51,7 +50,7 @@ void euid_get_value(void *priv, static const struct lttng_kernel_ctx_field *ctx_field = lttng_kernel_static_ctx_field( lttng_kernel_static_event_field("euid", lttng_kernel_static_type_integer_from_type(uid_t, __BYTE_ORDER, 10), - false, false, false), + false, false), euid_get_size, euid_record, euid_get_value,