X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Flttng-context-net-ns.c;h=3e3c3944a48e5e0b9af849da646a7f0cf2307396;hb=89d917153fc52c1e5b0ddabf8ee078897656b263;hp=54c28e0fc17a601e9ee302178ac702bdbe919823;hpb=8a57ec025ffbe56153748fd69b60118862707182;p=lttng-modules.git diff --git a/src/lttng-context-net-ns.c b/src/lttng-context-net-ns.c index 54c28e0f..3e3c3944 100644 --- a/src/lttng-context-net-ns.c +++ b/src/lttng-context-net-ns.c @@ -37,7 +37,7 @@ size_t net_ns_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, siz static void net_ns_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) { unsigned int net_ns_inum = 0; @@ -51,8 +51,7 @@ void net_ns_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, if (current->nsproxy) net_ns_inum = current->nsproxy->net_ns->lttng_ns_inum; - lib_ring_buffer_align_ctx(ctx, lttng_alignof(net_ns_inum)); - chan->ops->event_write(ctx, &net_ns_inum, sizeof(net_ns_inum)); + chan->ops->event_write(ctx, &net_ns_inum, sizeof(net_ns_inum), lttng_alignof(net_ns_inum)); } static @@ -78,7 +77,7 @@ void net_ns_get_value(void *priv, static const struct lttng_kernel_ctx_field *ctx_field = lttng_kernel_static_ctx_field( lttng_kernel_static_event_field("net_ns", lttng_kernel_static_type_integer_from_type(unsigned int, __BYTE_ORDER, 10), - false, false, false), + false, false), net_ns_get_size, net_ns_record, net_ns_get_value,