X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Flttng-context-hostname.c;h=96320ad342d56480b232969c3a31786e7f41de9d;hb=ffcc873470121ef1ebb110df3d9038a38d9cb7cb;hp=b12ff0bcdd46b310e0834c4f361a264030e6f41a;hpb=a92e844e9e4cc9d5c4a7ec3d1c0738d375430446;p=lttng-modules.git diff --git a/src/lttng-context-hostname.c b/src/lttng-context-hostname.c index b12ff0bc..96320ad3 100644 --- a/src/lttng-context-hostname.c +++ b/src/lttng-context-hostname.c @@ -30,8 +30,8 @@ size_t hostname_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, s static void hostname_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, - struct lib_ring_buffer_ctx *ctx, - struct lttng_channel *chan) + struct lttng_kernel_ring_buffer_ctx *ctx, + struct lttng_kernel_channel_buffer *chan) { struct nsproxy *nsproxy; struct uts_namespace *ns; @@ -46,7 +46,7 @@ void hostname_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, ns = nsproxy->uts_ns; hostname = ns->name.nodename; chan->ops->event_write(ctx, hostname, - LTTNG_HOSTNAME_CTX_LEN); + LTTNG_HOSTNAME_CTX_LEN, 1); } else { chan->ops->event_memset(ctx, 0, LTTNG_HOSTNAME_CTX_LEN);