Fix: sessiond: null pointer dereference on initial evaluation of session
[lttng-tools.git] / src / bin / lttng-sessiond / clock-class.cpp
1 /*
2 * Copyright (C) 2022 Jérémie Galarneau <jeremie.galarneau@efficios.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 */
7
8 #include "clock-class.hpp"
9 #include "trace-class.hpp"
10
11 lttng::sessiond::trace::clock_class::clock_class(std::string in_name,
12 std::string in_description,
13 nonstd::optional<lttng_uuid> in_uuid,
14 scycles_t in_offset,
15 cycles_t in_frequency) :
16 name{std::move(in_name)},
17 description{std::move(in_description)},
18 uuid{std::move(in_uuid)},
19 offset{in_offset},
20 frequency{in_frequency}
21 {
22 }
23
24 void lttng::sessiond::trace::clock_class::accept(trace_class_visitor& visitor) const
25 {
26 visitor.visit(*this);
27 }
This page took 0.030504 seconds and 4 git commands to generate.