Decouple `struct lttng_event` from filter code
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Tue, 7 Jan 2020 16:00:55 +0000 (11:00 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 18 Nov 2020 17:58:14 +0000 (12:58 -0500)
commit2dfda770cc6781ec372ee8dadd8eb4f6ab37375a
treed5d7e7f52a5c4a611dae61522cfe5486cd5bdf23
parent1b917d6b45b8d2573462b43b407663ac9352e733
Decouple `struct lttng_event` from filter code

The filter infrastructure will be used by event notifiers and decoupling
this will allow for massive code reuse.

Of all `struct lttng_event`'s fields, filter code needs:
1. The `const struct lttng_event_desc *desc` field,
2. The `struct cds_list_head bytecode_runtime_head` list.

These fields are used to do the tracepoint field relocation
(`apply_field_reloc()` and `specialize_event_payload_lookup()`).

Considering that only these two field are needed, we can pass them
directly to these functions.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: If569b7d315700660aa84241d112668f2451b715a
include/lttng/events.h
include/lttng/filter.h
src/lttng-events.c
src/lttng-filter-specialize.c
src/lttng-filter.c
This page took 0.026872 seconds and 4 git commands to generate.