sessiond: generate packet header, packet context and event header dynamically
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 7 Jul 2022 16:20:33 +0000 (12:20 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 13 Jul 2022 20:02:05 +0000 (16:02 -0400)
commit058a22419ad53e80927878b10012fd000ddeb48c
tree14bc81bdd8de8c664046ab928861c35391342f49
parent49830ece650265237f42277abe337d181ff9a025
sessiond: generate packet header, packet context and event header dynamically

Instead of hardcoding event header and packet header/context layouts,
their layout is expressed using the lttng::sessiond::trace::field/type
API and serialized to TSDL using the visitor.

This reduces the duplication of code in the CTF2 visitor.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I9a4255889e36e6861a59536ce70b1e708da06ac5
12 files changed:
src/bin/lttng-sessiond/event-class.cpp
src/bin/lttng-sessiond/field.hpp
src/bin/lttng-sessiond/stream-class.cpp
src/bin/lttng-sessiond/stream-class.hpp
src/bin/lttng-sessiond/trace-class.hpp
src/bin/lttng-sessiond/tsdl-trace-class-visitor.cpp
src/bin/lttng-sessiond/ust-app.cpp
src/bin/lttng-sessiond/ust-field-convert.cpp
src/bin/lttng-sessiond/ust-registry-channel.cpp
src/bin/lttng-sessiond/ust-registry-channel.hpp
src/bin/lttng-sessiond/ust-registry-session.cpp
src/bin/lttng-sessiond/ust-registry-session.hpp
This page took 0.028496 seconds and 5 git commands to generate.