From: Francis Deslauriers Date: Mon, 11 May 2020 20:24:31 +0000 (-0400) Subject: bytecode: propagate `rev_bo` of element X-Git-Tag: v2.13.0-rc1~100 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=60e8b0d60f46d3d9c9db8f043c70a02725d05334;p=lttng-modules.git bytecode: propagate `rev_bo` of element When specializing and executing bytecode. Signed-off-by: Francis Deslauriers Signed-off-by: Mathieu Desnoyers Change-Id: I86aea5b5733f92c56564c6352bd6dcb85f6a2d30 --- diff --git a/src/lttng-filter-interpreter.c b/src/lttng-filter-interpreter.c index 69db9494..403a712f 100644 --- a/src/lttng-filter-interpreter.c +++ b/src/lttng-filter-interpreter.c @@ -427,6 +427,7 @@ static int dynamic_get_index(struct lttng_probe_ctx *lttng_probe_ctx, stack_top->u.ptr.object_type = gid->elem.type; stack_top->u.ptr.type = LOAD_OBJECT; stack_top->u.ptr.field = gid->field; + stack_top->u.ptr.rev_bo = gid->elem.rev_bo; break; } diff --git a/src/lttng-filter-specialize.c b/src/lttng-filter-specialize.c index 86f7c536..32591d19 100644 --- a/src/lttng-filter-specialize.c +++ b/src/lttng-filter-specialize.c @@ -407,6 +407,7 @@ static int specialize_context_lookup(struct lttng_ctx *ctx, memset(&gid, 0, sizeof(gid)); gid.ctx_index = idx; gid.elem.type = load->object_type; + gid.elem.rev_bo = load->rev_bo; gid.field = field; data_offset = bytecode_push_data(runtime, &gid, __alignof__(gid), sizeof(gid)); @@ -477,6 +478,7 @@ static int specialize_payload_lookup(const struct lttng_event_desc *event_desc, memset(&gid, 0, sizeof(gid)); gid.offset = field_offset; gid.elem.type = load->object_type; + gid.elem.rev_bo = load->rev_bo; gid.field = field; data_offset = bytecode_push_data(runtime, &gid, __alignof__(gid), sizeof(gid));