fix: relayd: unaligned access in trace_chunk_registry_ht_key_hash
[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 <lttng/lttng.h>
15
16 #include <cstdint>
17 #include <ctime>
18 #include <string>
19 #include <unistd.h>
20
21 namespace lttng {
22 namespace sessiond {
23 namespace ust {
24
25 class registry_session_per_pid : public registry_session {
26 public:
27 registry_session_per_pid(const struct ust_app& app,
28 const struct lttng::sessiond::trace::abi& trace_abi,
29 uint32_t major,
30 uint32_t minor,
31 const char *root_shm_path,
32 const char *shm_path,
33 uid_t euid,
34 gid_t egid,
35 uint64_t tracing_id);
36
37 lttng_buffer_type buffering_scheme() const noexcept final;
38 void accept(lttng::sessiond::trace::trace_class_environment_visitor& environment_visitor)
39 const final;
40
41 private:
42 const unsigned int _tracer_patch_level_version;
43 const pid_t _vpid;
44 const std::string _procname;
45 const std::time_t _app_creation_time;
46 };
47
48 } /* namespace ust */
49 } /* namespace sessiond */
50 } /* namespace lttng */
51
52 #endif /* LTTNG_UST_REGISTRY_SESSION_PID_H */
This page took 0.030404 seconds and 4 git commands to generate.