bytecode: propagate `rev_bo` of element
[lttng-modules.git] / lttng-filter-interpreter.c
index d9dc6195f2f78cf1d683b48e046be01e2383f124..8c870e14723db99d6d7e341cbf0e25fb776bff75 100644 (file)
@@ -290,6 +290,7 @@ static int context_get_index(struct lttng_probe_ctx *lttng_probe_ctx,
                        ptr->u.u64 = v.s64;     /* Cast. */
                        ptr->ptr = &ptr->u.u64;
                }
+               ptr->rev_bo = field->type.u.basic.integer.reverse_byte_order;
                break;
        case atype_enum:
        {
@@ -306,6 +307,7 @@ static int context_get_index(struct lttng_probe_ctx *lttng_probe_ctx,
                        ptr->u.u64 = v.s64;     /* Cast. */
                        ptr->ptr = &ptr->u.u64;
                }
+               ptr->rev_bo = itype->reverse_byte_order;
                break;
        }
        case atype_array:
@@ -439,6 +441,7 @@ static int dynamic_get_index(struct lttng_probe_ctx *lttng_probe_ctx,
                stack_top->u.ptr.type = LOAD_OBJECT;
                /* field is only used for types nested within variants. */
                stack_top->u.ptr.field = NULL;
+               stack_top->u.ptr.rev_bo = gid->elem.rev_bo;
                break;
        }
        return 0;
This page took 0.027468 seconds and 4 git commands to generate.