bytecode: allow interpreter to return any type
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Mon, 27 Apr 2020 22:02:44 +0000 (18:02 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 26 Nov 2020 18:27:09 +0000 (13:27 -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: Ib93aaa8285ddd615b16dd6ebbf038f79880e25e8

liblttng-ust/lttng-filter-validator.c

index 5ac79034c369d45bf7e923f7f9936ce485f7bd37..e6982369bdc1d8c8e90c4c9d8ff29c6f9b20c16a 100644 (file)
@@ -1301,6 +1301,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_UNKNOWN:
                        break;
                default:
This page took 0.025654 seconds and 4 git commands to generate.