From 09f78acbebc1a1ab8f6f138d18684ab8b886a417 Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Mon, 27 Apr 2020 18:02:44 -0400 Subject: [PATCH] bytecode: allow interpreter to return any type The bytecode interpreter when used by capture bytecode needs to return types other than an integer or dynamic type. Signed-off-by: Francis Deslauriers Signed-off-by: Mathieu Desnoyers Change-Id: Ib93aaa8285ddd615b16dd6ebbf038f79880e25e8 --- liblttng-ust/lttng-filter-validator.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/liblttng-ust/lttng-filter-validator.c b/liblttng-ust/lttng-filter-validator.c index 5ac79034..e6982369 100644 --- a/liblttng-ust/lttng-filter-validator.c +++ b/liblttng-ust/lttng-filter-validator.c @@ -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: -- 2.34.1