X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust%2Flttng-filter.c;h=d71485d166b30bc839b0b71dbd53307aae265def;hb=cec91e30b077aa46175a9964a4cf38f54276e0e4;hp=4bb7d4dc87f0793705a11804d7fe91fefab5a427;hpb=77aa5901fd3f09001fb7e78f3533cf58c6d345e5;p=lttng-ust.git diff --git a/liblttng-ust/lttng-filter.c b/liblttng-ust/lttng-filter.c index 4bb7d4dc..d71485d1 100644 --- a/liblttng-ust/lttng-filter.c +++ b/liblttng-ust/lttng-filter.c @@ -232,7 +232,7 @@ int apply_context_reloc(struct lttng_event *event, dbg_printf("Apply context reloc: %u %s\n", reloc_offset, context_name); /* Get context index */ - idx = lttng_get_context_index(event->chan->ctx, context_name); + idx = lttng_get_context_index(lttng_static_ctx, context_name); if (idx < 0) return -ENOENT; @@ -241,7 +241,7 @@ int apply_context_reloc(struct lttng_event *event, return -EINVAL; /* Get context return type */ - ctx_field = &event->chan->ctx->fields[idx]; + ctx_field = <tng_static_ctx->fields[idx]; op = (struct load_op *) &runtime->data[reloc_offset]; field_ref = (struct field_ref *) op->data; switch (ctx_field->event_field.type.atype) {