X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust%2Flttng-filter-interpreter.c;h=29bcaeffa0656cacea08f59f5c6b782bb23c1af7;hb=f6df8626c40e58c39e83215a5bdbdf7a29038c35;hp=1f43decee2e32414cb71b3f06e2cd2e9d3afbbaf;hpb=77aa5901fd3f09001fb7e78f3533cf58c6d345e5;p=lttng-ust.git diff --git a/liblttng-ust/lttng-filter-interpreter.c b/liblttng-ust/lttng-filter-interpreter.c index 1f43dece..29bcaeff 100644 --- a/liblttng-ust/lttng-filter-interpreter.c +++ b/liblttng-ust/lttng-filter-interpreter.c @@ -176,7 +176,6 @@ uint64_t lttng_filter_interpret_bytecode(void *filter_data, const char *filter_stack_data) { struct bytecode_runtime *bytecode = filter_data; - struct lttng_ctx *ctx = bytecode->p.bc->enabler->chan->ctx; void *pc, *next_pc, *start_pc; int ret = -EINVAL; uint64_t retval = 0; @@ -864,7 +863,7 @@ uint64_t lttng_filter_interpret_bytecode(void *filter_data, dbg_printf("get context ref offset %u type string\n", ref->offset); - ctx_field = &ctx->fields[ref->offset]; + ctx_field = <tng_static_ctx->fields[ref->offset]; ctx_field->get_value(ctx_field, &v); estack_push(stack, top, ax, bx); estack_ax(stack, top)->u.s.str = v.str; @@ -889,7 +888,7 @@ uint64_t lttng_filter_interpret_bytecode(void *filter_data, dbg_printf("get context ref offset %u type s64\n", ref->offset); - ctx_field = &ctx->fields[ref->offset]; + ctx_field = <tng_static_ctx->fields[ref->offset]; ctx_field->get_value(ctx_field, &v); estack_push(stack, top, ax, bx); estack_ax_v = v.s64; @@ -907,7 +906,7 @@ uint64_t lttng_filter_interpret_bytecode(void *filter_data, dbg_printf("get context ref offset %u type double\n", ref->offset); - ctx_field = &ctx->fields[ref->offset]; + ctx_field = <tng_static_ctx->fields[ref->offset]; ctx_field->get_value(ctx_field, &v); estack_push(stack, top, ax, bx); memcpy(&estack_ax(stack, top)->u.d, &v.d, sizeof(struct literal_double));