Add `lttng_bytecode_interpret_format_output()` for top of stack extraction
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 18 Mar 2020 21:24:53 +0000 (17:24 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 26 Nov 2020 18:26:38 +0000 (13:26 -0500)
commitf3503ba91a8406767eec49927e847c681f4e994c
treee114ad09f22130cf67ee8a95479867290bb6e671
parentd97f9b785f05c29dbabb57da9a32c8c4317da8d3
Add `lttng_bytecode_interpret_format_output()` for top of stack extraction

This new static function will be used to extract the register on the top of
stack after the execution of the bytecode. This is currently not used by the
filter bytecode but will be used by capture bytecode in the future.

The returned value is saved in a tagged union struct named `struct
lttng_interpreter_output` and can be used by the caller of the interpreter
function.

Typically, this struct will be allocated on the stack to avoid dynamic
allocation inside the tracepoint probes.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Id8a64d55f2bfb1af1657634a36d34dba5325777f
liblttng-ust/lttng-filter-interpreter.c
liblttng-ust/lttng-filter-specialize.c
liblttng-ust/lttng-filter.c
liblttng-ust/lttng-filter.h
This page took 0.031094 seconds and 4 git commands to generate.