X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Flttng-context-hostname.c;h=96320ad342d56480b232969c3a31786e7f41de9d;hb=77fcffefa34f8de5c4988eea035883a65c6befbc;hp=8956e540e1c8a0a01255c61d88203b9727ed9092;hpb=e02e55535695161ec4e80814fdbbe5cb15b005e1;p=lttng-modules.git diff --git a/src/lttng-context-hostname.c b/src/lttng-context-hostname.c index 8956e540..96320ad3 100644 --- a/src/lttng-context-hostname.c +++ b/src/lttng-context-hostname.c @@ -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);