bytecode: set register type to `REG_PTR` even if not used
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Mon, 11 May 2020 20:09:20 +0000 (16:09 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 25 Nov 2020 18:11:38 +0000 (13:11 -0500)
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 <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I9c60416dd452949e584fadd70b15cdc3d402aa46

src/lttng-filter-interpreter.c

index 3273d4a0f284892b6d0188126cf8aea02f3b4234..69db94940d961604f51cae2091a37441cc883ab7 100644 (file)
@@ -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:
This page took 0.026784 seconds and 4 git commands to generate.