10da75818fd718e750d86e9dfdfb1e308b1c46b1
[lttng-tools.git] / src / bin / lttng-sessiond / ust-registry-session-uid.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_UID_H
9 #define LTTNG_UST_REGISTRY_SESSION_UID_H
10
11 #include "trace-class.hpp"
12 #include "ust-registry-session.hpp"
13
14 #include <cstdint>
15 #include <lttng/lttng.h>
16 #include <unistd.h>
17
18 namespace lttng {
19 namespace sessiond {
20 namespace ust {
21
22 class registry_session_per_uid : public registry_session {
23 public:
24 registry_session_per_uid(const struct lttng::sessiond::trace::abi& trace_abi,
25 uint32_t major,
26 uint32_t minor,
27 const char *root_shm_path,
28 const char *shm_path,
29 uid_t euid,
30 gid_t egid,
31 uint64_t tracing_id,
32 uid_t tracing_uid);
33
34 virtual lttng_buffer_type get_buffering_scheme() const noexcept override final;
35 virtual void accept(lttng::sessiond::trace::trace_class_environment_visitor&
36 environment_visitor) const override final;
37
38 private:
39
40 const uid_t _tracing_uid;
41 };
42
43 } /* namespace ust */
44 } /* namespace sessiond */
45 } /* namespace lttng */
46
47 #endif /* LTTNG_UST_REGISTRY_SESSION_UID_H */
This page took 0.029628 seconds and 4 git commands to generate.