From: Francis Deslauriers Date: Mon, 27 Apr 2020 22:02:44 +0000 (-0400) Subject: bytecode: allow interpreter to return any type X-Git-Tag: v2.13.0-rc1~447 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=09f78acbebc1a1ab8f6f138d18684ab8b886a417;p=lttng-ust.git 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 --- 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: