API refactoring: introduce probe context
[lttng-ust.git] / src / lib / lttng-ust / lttng-context-mnt-ns.c
index e7b32e6498c7ccf6953b4651c15757247c37186f..e83b9bbe021341e1fea4adbcaa606ddc0a798082 100644 (file)
@@ -74,6 +74,7 @@ void lttng_context_mnt_ns_reset(void)
 
 static
 size_t mnt_ns_get_size(void *priv __attribute__((unused)),
+               struct lttng_ust_probe_ctx *probe_ctx __attribute__((unused)),
                size_t offset)
 {
        size_t size = 0;
@@ -85,8 +86,9 @@ size_t mnt_ns_get_size(void *priv __attribute__((unused)),
 
 static
 void mnt_ns_record(void *priv __attribute__((unused)),
-                struct lttng_ust_ring_buffer_ctx *ctx,
-                struct lttng_ust_channel_buffer *chan)
+               struct lttng_ust_probe_ctx *probe_ctx __attribute__((unused)),
+               struct lttng_ust_ring_buffer_ctx *ctx,
+               struct lttng_ust_channel_buffer *chan)
 {
        ino_t mnt_ns;
 
@@ -96,9 +98,10 @@ void mnt_ns_record(void *priv __attribute__((unused)),
 
 static
 void mnt_ns_get_value(void *priv __attribute__((unused)),
+               struct lttng_ust_probe_ctx *probe_ctx __attribute__((unused)),
                struct lttng_ust_ctx_value *value)
 {
-       value->u.s64 = get_mnt_ns();
+       value->u.u64 = get_mnt_ns();
 }
 
 static const struct lttng_ust_ctx_field *ctx_field = lttng_ust_static_ctx_field(
@@ -106,7 +109,7 @@ static const struct lttng_ust_ctx_field *ctx_field = lttng_ust_static_ctx_field(
                lttng_ust_static_type_integer(sizeof(ino_t) * CHAR_BIT,
                                lttng_ust_rb_alignof(ino_t) * CHAR_BIT,
                                lttng_ust_is_signed_type(ino_t),
-                               BYTE_ORDER, 10),
+                               LTTNG_UST_BYTE_ORDER, 10),
                false, false),
        mnt_ns_get_size,
        mnt_ns_record,
This page took 0.023454 seconds and 4 git commands to generate.