X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Flttng-context-uid.c;h=434f7199ae6e24bdf0da86e287434e82330bf90a;hb=eec143a1bec2bebc1c62faab8af96160eb47ece5;hp=841d2ea726a1341b100f7d16a709da6d7546dd29;hpb=437d5aa59380583ce1cd14d394a53b398be1275d;p=lttng-modules.git diff --git a/src/lttng-context-uid.c b/src/lttng-context-uid.c index 841d2ea7..434f7199 100644 --- a/src/lttng-context-uid.c +++ b/src/lttng-context-uid.c @@ -19,7 +19,7 @@ #include static -size_t uid_get_size(size_t offset) +size_t uid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset) { size_t size = 0; @@ -29,8 +29,8 @@ size_t uid_get_size(size_t offset) } static -void uid_record(struct lttng_kernel_ctx_field *field, - struct lib_ring_buffer_ctx *ctx, +void uid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, + struct lttng_kernel_ring_buffer_ctx *ctx, struct lttng_channel *chan) { uid_t uid; @@ -41,11 +41,11 @@ void uid_record(struct lttng_kernel_ctx_field *field, } static -void uid_get_value(struct lttng_kernel_ctx_field *field, - struct lttng_probe_ctx *lttng_probe_ctx, - union lttng_ctx_value *value) +void uid_get_value(void *priv, + struct lttng_kernel_probe_ctx *lttng_probe_ctx, + struct lttng_ctx_value *value) { - value->s64 = lttng_current_uid(); + value->u.s64 = lttng_current_uid(); } static const struct lttng_kernel_ctx_field *ctx_field = lttng_kernel_static_ctx_field( @@ -53,7 +53,6 @@ static const struct lttng_kernel_ctx_field *ctx_field = lttng_kernel_static_ctx_ lttng_kernel_static_type_integer_from_type(uid_t, __BYTE_ORDER, 10), false, false, false), uid_get_size, - NULL, uid_record, uid_get_value, NULL, NULL);