From: Francis Deslauriers Date: Mon, 11 May 2020 20:09:20 +0000 (-0400) Subject: bytecode: set register type to `REG_PTR` even if not used X-Git-Tag: v2.13.0-rc1~101 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=196e531f00db3dcc3faadb497ba677f4a52c4e87;p=lttng-modules.git bytecode: set register type to `REG_PTR` even if not used There was no need to set the field when using filter as the next instruction would assume that the top of stack is a `REG_PTR`. With the upcoming capture feature, we need to ensure this field is consistent for extraction. Signed-off-by: Francis Deslauriers Signed-off-by: Mathieu Desnoyers Change-Id: I9c60416dd452949e584fadd70b15cdc3d402aa46 --- diff --git a/src/lttng-filter-interpreter.c b/src/lttng-filter-interpreter.c index 3273d4a0..69db9494 100644 --- a/src/lttng-filter-interpreter.c +++ b/src/lttng-filter-interpreter.c @@ -429,6 +429,9 @@ static int dynamic_get_index(struct lttng_probe_ctx *lttng_probe_ctx, stack_top->u.ptr.field = gid->field; break; } + + stack_top->type = REG_PTR; + return 0; end: