API refactoring: introduce probe context
[lttng-ust.git] / src / lib / lttng-ust / lttng-context-vsgid.c
index f66b6b76db342615b6e97f847d11c380454d99a4..37b227d36ba64ab5fef055baea40367150bd95e1 100644 (file)
@@ -67,6 +67,7 @@ void lttng_context_vsgid_reset(void)
 
 static
 size_t vsgid_get_size(void *priv __attribute__((unused)),
+               struct lttng_ust_probe_ctx *probe_ctx __attribute__((unused)),
                size_t offset)
 {
        size_t size = 0;
@@ -78,8 +79,9 @@ size_t vsgid_get_size(void *priv __attribute__((unused)),
 
 static
 void vsgid_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)
 {
        gid_t vsgid;
 
@@ -89,9 +91,10 @@ void vsgid_record(void *priv __attribute__((unused)),
 
 static
 void vsgid_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_vsgid();
+       value->u.u64 = get_vsgid();
 }
 
 static const struct lttng_ust_ctx_field *ctx_field = lttng_ust_static_ctx_field(
This page took 0.024435 seconds and 4 git commands to generate.