bytecode: allow interpreter to return any type
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Tue, 12 May 2020 16:07:50 +0000 (12:07 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 25 Nov 2020 18:12:10 +0000 (13:12 -0500)
The bytecode interpreter when used by capture bytecode needs to return
types other than an integer or dynamic type.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I099749183fbd0622f258f9c38e37fdb167493a0b

src/lttng-filter-validator.c

index 7e308281f26b7ffd5c8813d1a868bdeb7132ff08..3353be2b374cf7a4520df8c6cfe7e0310009c8b0 100644 (file)
@@ -1178,6 +1178,9 @@ int exec_insn(struct bytecode_runtime *bytecode,
                switch (vstack_ax(stack)->type) {
                case REG_S64:
                case REG_U64:
+               case REG_DOUBLE:
+               case REG_STRING:
+               case REG_PTR:
                case REG_TYPE_UNKNOWN:
                        break;
                default:
This page took 0.02793 seconds and 4 git commands to generate.