common: move bytecode utilities from filter to its own file
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 3 Apr 2020 17:50:57 +0000 (13:50 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 9 Mar 2021 04:50:57 +0000 (23:50 -0500)
commit0ae3cfc61fedae38ef31fe5a99458c4f2161c3b5
tree5a2729dc06b8b824fe55e699a2d4a5772a0b4a18
parent20a01d1592c8e83d2dfe51cbd192857537ae7d4e
common: move bytecode utilities from filter to its own file

We'll want to re-use the filter bytecode to implement the trigger event
rule condition field captures.  This is a preparatory patch that moves
some filter bytecode code in a location that is not filter-specific, so
it can be used for both filters and captures.

The content of common/filter/filter-bytecode.h is moved to
common/bytecode/bytecode.h.  Some declarations for the various bytecode
helpers are added to that file.  The implementation for these helpers is
moved from common/filter/filter-visitor-generate-bytecode.c to
common/bytecode/bytecode.c.

The content of src/common/bytecode is built as a library, so it can be
used by the filter-grammar-test program.

A following patch renames the content of bytecode/bytecode.h to remove
the "filter" part.

The rest of the changes is just to adapt the code to the changes
mentioned above.

Change-Id: Id602c9046bdc76791026c5b5a928387145d18e43
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Depends-on: lttng-ust: I5a800fc92e588c2a6a0e26282b0ad5f31c044479
13 files changed:
configure.ac
src/common/Makefile.am
src/common/bytecode/Makefile.am [new file with mode: 0644]
src/common/bytecode/bytecode.c [new file with mode: 0644]
src/common/bytecode/bytecode.h [new file with mode: 0644]
src/common/filter/Makefile.am
src/common/filter/filter-ast.h
src/common/filter/filter-bytecode.h [deleted file]
src/common/filter/filter-grammar-test.c
src/common/filter/filter-parser.y
src/common/filter/filter-visitor-generate-bytecode.c
src/common/runas.c
src/lib/lttng-ctl/lttng-ctl.c
This page took 0.026561 seconds and 4 git commands to generate.