#define LTTNG_HOSTNAME_CTX_LEN (__NEW_UTS_LEN + 1)
static
-size_t hostname_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t hostname_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void hostname_record(void *priv, struct lttng_probe_ctx *probe_ctx,
- struct lib_ring_buffer_ctx *ctx,
- struct lttng_channel *chan)
+void hostname_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
+ struct lttng_kernel_ring_buffer_ctx *ctx,
+ struct lttng_kernel_channel_buffer *chan)
{
struct nsproxy *nsproxy;
struct uts_namespace *ns;
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);
static
void hostname_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
struct nsproxy *nsproxy;