X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=liblttng-ust%2Flttng-filter-interpreter.c;h=d558b6b2be26ce8feec1a941f6080b76074baec2;hb=23aee768dcad2b7e896a86183b38c96b2123d983;hp=b57edacde71f4cc5d2f67f8fe4ccde224a777727;hpb=628f0e45bd8bed9186406cf68a6866ef5f55e60c;p=lttng-ust.git diff --git a/liblttng-ust/lttng-filter-interpreter.c b/liblttng-ust/lttng-filter-interpreter.c index b57edacd..d558b6b2 100644 --- a/liblttng-ust/lttng-filter-interpreter.c +++ b/liblttng-ust/lttng-filter-interpreter.c @@ -246,6 +246,7 @@ static int context_get_index(struct lttng_ctx *ctx, ptr->u.u64 = v.u.s64; /* Cast. */ ptr->ptr = &ptr->u.u64; } + ptr->rev_bo = field->type.u.basic.integer.reverse_byte_order; break; case atype_enum: { @@ -262,6 +263,7 @@ static int context_get_index(struct lttng_ctx *ctx, ptr->u.u64 = v.u.s64; /* Cast. */ ptr->ptr = &ptr->u.u64; } + ptr->rev_bo = itype->reverse_byte_order; break; } case atype_array: @@ -300,6 +302,7 @@ static int context_get_index(struct lttng_ctx *ctx, ctx_field->get_value(ctx_field, &v); ptr->u.d = v.u.d; ptr->ptr = &ptr->u.d; + ptr->rev_bo = field->type.u.basic._float.reverse_byte_order; break; case atype_dynamic: ctx_field->get_value(ctx_field, &v); @@ -310,12 +313,22 @@ static int context_get_index(struct lttng_ctx *ctx, ptr->object_type = OBJECT_TYPE_S64; ptr->u.s64 = v.u.s64; ptr->ptr = &ptr->u.s64; + /* + * struct lttng_ctx_value does not currently + * feature a byte order field. + */ + ptr->rev_bo = false; dbg_printf("context get index dynamic s64 %" PRIi64 "\n", ptr->u.s64); break; case LTTNG_UST_DYNAMIC_TYPE_DOUBLE: ptr->object_type = OBJECT_TYPE_DOUBLE; ptr->u.d = v.u.d; ptr->ptr = &ptr->u.d; + /* + * struct lttng_ctx_value does not currently + * feature a byte order field. + */ + ptr->rev_bo = false; dbg_printf("context get index dynamic double %g\n", ptr->u.d); break; case LTTNG_UST_DYNAMIC_TYPE_STRING: