Commit | Line | Data |
---|---|---|
d0b96690 | 1 | /* |
ab5be9fa MJ |
2 | * Copyright (C) 2010 Pierre-Marc Fournier |
3 | * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
b3647fb8 | 4 | * Copyright (C) 2022 Jérémie Galarneau <jeremie.galarneau@efficios.com> |
d0b96690 | 5 | * |
ab5be9fa | 6 | * SPDX-License-Identifier: GPL-2.0-only |
d0b96690 | 7 | * |
d0b96690 DG |
8 | */ |
9 | ||
10 | #ifndef _UST_CLOCK_H | |
11 | #define _UST_CLOCK_H | |
12 | ||
c9e313bc | 13 | #include <common/compat/time.hpp> |
b3647fb8 JG |
14 | #include <common/uuid.hpp> |
15 | #include <vendor/optional.hpp> | |
16 | ||
17 | #include <lttng/ust-clock.h> | |
d0b96690 | 18 | #include <stddef.h> |
b3647fb8 | 19 | #include <stdint.h> |
d0b96690 | 20 | #include <stdio.h> |
b3647fb8 JG |
21 | #include <string> |
22 | #include <sys/time.h> | |
fc0bb9fa | 23 | #include <urcu/arch.h> |
b3647fb8 | 24 | #include <urcu/system.h> |
fc0bb9fa | 25 | |
b3647fb8 JG |
26 | namespace lttng { |
27 | namespace ust { | |
97f3d71c | 28 | |
b3647fb8 JG |
29 | class clock_attributes_sample { |
30 | public: | |
31 | using cycles_t = uint64_t; | |
32 | using scycles_t = int64_t; | |
fc0bb9fa | 33 | |
b3647fb8 | 34 | clock_attributes_sample(); |
fc0bb9fa | 35 | |
b3647fb8 JG |
36 | const std::string _name; |
37 | const std::string _description; | |
38 | const nonstd::optional<lttng_uuid> _uuid; | |
39 | const scycles_t _offset; | |
40 | const cycles_t _frequency; | |
41 | }; | |
97f3d71c | 42 | |
b3647fb8 JG |
43 | } /* namespace ust */ |
44 | } /* namespace lttng */ | |
fc0bb9fa | 45 | |
d0b96690 | 46 | #endif /* _UST_CLOCK_H */ |