Add `lttng_bytecode_interpret_format_output()` for top of stack extraction
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Mon, 11 May 2020 19:57:20 +0000 (15:57 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 25 Nov 2020 18:08:01 +0000 (13:08 -0500)
commit03cb0cdd5c45e758520e1ba9d9300d448314d527
treeb17c6fffe2de72fd2732b9a79de87d596dccf602
parent1242217a08db0fb08a4f8f7bb3a94b82647b17e4
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.

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: I1cfd3ab6e84b7e308c48ed7a8a9555a3e338eea7
include/lttng/filter.h
src/lttng-filter-interpreter.c
src/lttng-filter-specialize.c
src/lttng-filter.c
This page took 0.0268 seconds and 4 git commands to generate.