Rename "tsc" to "timestamp"
[lttng-modules.git] / src / lttng-context-hostname.c
index df46293b0bf860914cc92717aed22f8e2d793723..68e142c159191c1ad14c8107e44b29c7b7009425 100644 (file)
@@ -20,7 +20,7 @@
 #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;
 
@@ -29,9 +29,9 @@ size_t hostname_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t o
 }
 
 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;
@@ -46,7 +46,7 @@ void hostname_record(void *priv, struct lttng_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);
@@ -55,7 +55,7 @@ void hostname_record(void *priv, struct lttng_probe_ctx *probe_ctx,
 
 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;
@@ -79,7 +79,7 @@ void hostname_get_value(void *priv,
 static const struct lttng_kernel_ctx_field *ctx_field = lttng_kernel_static_ctx_field(
        lttng_kernel_static_event_field("hostname",
                lttng_kernel_static_type_array_text(LTTNG_HOSTNAME_CTX_LEN),
-               false, false, false),
+               false, false),
        hostname_get_size,
        hostname_record,
        hostname_get_value,
This page took 0.0255 seconds and 4 git commands to generate.