Clean-up: sessiond: move ust_registry_session under lttng::sessiond::ust
[lttng-tools.git] / src / bin / lttng-sessiond / ust-registry-session-pid.hpp
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 #ifndef LTTNG_UST_REGISTRY_SESSION_PID_H
9 #define LTTNG_UST_REGISTRY_SESSION_PID_H
10
11 #include "trace-class.hpp"
12 #include "ust-registry-session.hpp"
13
14 #include <cstdint>
15 #include <ctime>
16 #include <lttng/lttng.h>
17 #include <string>
18 #include <unistd.h>
19
20 namespace lttng {
21 namespace sessiond {
22 namespace ust {
23
24 class registry_session_per_pid : public registry_session {
25 public:
26 registry_session_per_pid(const struct ust_app& app,
27 const struct lttng::sessiond::trace::abi& trace_abi,
28 uint32_t major,
29 uint32_t minor,
30 const char *root_shm_path,
31 const char *shm_path,
32 uid_t euid,
33 gid_t egid,
34 uint64_t tracing_id);
35
36 virtual lttng_buffer_type get_buffering_scheme() const noexcept override final;
37
38 private:
39 virtual void _visit_environment(
40 lttng::sessiond::trace::trace_class_visitor& trace_class_visitor)
41 const override final;
42
43 const unsigned int _tracer_patch_level_version;
44 const pid_t _vpid;
45 const std::string _procname;
46 const std::time_t _app_creation_time;
47 };
48
49 } /* namespace ust */
50 } /* namespace sessiond */
51 } /* namespace lttng */
52
53 #endif /* LTTNG_UST_REGISTRY_SESSION_PID_H */
This page took 0.030377 seconds and 4 git commands to generate.