X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Flttng-context-vpid.c;h=83091db1782097391aa91b87e652648e49595076;hb=e978f27486ddac0b9cbea5577fc413c67bc61141;hp=4732f2804164d1542ef9ed574cf520a3c05f576d;hpb=437d5aa59380583ce1cd14d394a53b398be1275d;p=lttng-modules.git diff --git a/src/lttng-context-vpid.c b/src/lttng-context-vpid.c index 4732f280..83091db1 100644 --- a/src/lttng-context-vpid.c +++ b/src/lttng-context-vpid.c @@ -17,7 +17,7 @@ #include static -size_t vpid_get_size(size_t offset) +size_t vpid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset) { size_t size = 0; @@ -27,7 +27,7 @@ size_t vpid_get_size(size_t offset) } static -void vpid_record(struct lttng_kernel_ctx_field *field, +void vpid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, struct lib_ring_buffer_ctx *ctx, struct lttng_channel *chan) { @@ -45,9 +45,9 @@ void vpid_record(struct lttng_kernel_ctx_field *field, } static -void vpid_get_value(struct lttng_kernel_ctx_field *field, - struct lttng_probe_ctx *lttng_probe_ctx, - union lttng_ctx_value *value) +void vpid_get_value(void *priv, + struct lttng_kernel_probe_ctx *lttng_probe_ctx, + struct lttng_ctx_value *value) { pid_t vpid; @@ -58,7 +58,7 @@ void vpid_get_value(struct lttng_kernel_ctx_field *field, vpid = 0; else vpid = task_tgid_vnr(current); - value->s64 = vpid; + value->u.s64 = vpid; } static const struct lttng_kernel_ctx_field *ctx_field = lttng_kernel_static_ctx_field( @@ -66,7 +66,6 @@ static const struct lttng_kernel_ctx_field *ctx_field = lttng_kernel_static_ctx_ lttng_kernel_static_type_integer_from_type(pid_t, __BYTE_ORDER, 10), false, false, false), vpid_get_size, - NULL, vpid_record, vpid_get_value, NULL, NULL);