sessiond: return raw pointer to packet header
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 21 Jul 2022 19:41:43 +0000 (15:41 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 8 Dec 2022 14:05:33 +0000 (09:05 -0500)
commit0267b5278de7bf4ee1ec11f2270dec4b44e80f36
treef1487c7b503e01c906acc7c9be0ad6550037a982
parenta57c248ad6c2dc246335330f41f9aae9d18fa17e
sessiond: return raw pointer to packet header

There is no benefit to transfering the ownership of a new packet header
everytime it is serialized. Packet headers don't change after the
creation of a session; prefer allocating it once and provide a
raw (const) pointer to the session's instance.

While LTTng always produces one, a trace doesn't absolutely need a
packet header so a pointer is preferred over a reference.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I66b8f9ad74e332edcc8273c076137a7fff0d4d5e
src/bin/lttng-sessiond/trace-class.hpp
src/bin/lttng-sessiond/ust-registry-session.cpp
src/bin/lttng-sessiond/ust-registry-session.hpp
This page took 0.024857 seconds and 4 git commands to generate.