| 1 | /* |
| 2 | * Copyright (C) 2010 Pierre-Marc Fournier |
| 3 | * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
| 4 | * Copyright (C) 2022 Jérémie Galarneau <jeremie.galarneau@efficios.com> |
| 5 | * |
| 6 | * SPDX-License-Identifier: GPL-2.0-only |
| 7 | * |
| 8 | */ |
| 9 | |
| 10 | #ifndef _UST_CLOCK_H |
| 11 | #define _UST_CLOCK_H |
| 12 | |
| 13 | #include <common/compat/time.hpp> |
| 14 | #include <common/uuid.hpp> |
| 15 | #include <vendor/optional.hpp> |
| 16 | |
| 17 | #include <lttng/ust-clock.h> |
| 18 | #include <stddef.h> |
| 19 | #include <stdint.h> |
| 20 | #include <stdio.h> |
| 21 | #include <string> |
| 22 | #include <sys/time.h> |
| 23 | #include <urcu/arch.h> |
| 24 | #include <urcu/system.h> |
| 25 | |
| 26 | namespace lttng { |
| 27 | namespace ust { |
| 28 | |
| 29 | class clock_attributes_sample { |
| 30 | public: |
| 31 | using cycles_t = uint64_t; |
| 32 | using scycles_t = int64_t; |
| 33 | |
| 34 | clock_attributes_sample(); |
| 35 | |
| 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 | }; |
| 42 | |
| 43 | } /* namespace ust */ |
| 44 | } /* namespace lttng */ |
| 45 | |
| 46 | #endif /* _UST_CLOCK_H */ |