| 1 | #cxx . . $ `<file>/src/bin/lttng-relayd/lttng-relayd.hpp`/ifndef LTTNG_RELAYD_H |
| 2 | #define LTTNG_RELAYD_Hcxx . . $ `src/bin/lttng-relayd/lttng-relayd.hpp:2:9`! |
| 3 | |
| 4 | /* |
| 5 | * SPDX-FileCopyrightText: 2012 Julien Desfossez <[email protected]> |
| 6 | * SPDX-FileCopyrightText: 2012 David Goulet <[email protected]> |
| 7 | * SPDX-FileCopyrightText: 2015 Mathieu Desnoyers <[email protected]> |
| 8 | * |
| 9 | * SPDX-License-Identifier: GPL-2.0-only |
| 10 | * |
| 11 | */ |
| 12 | |
| 13 | #include <common/compat/poll.hpp>cxx . . $ `<file>/src/common/compat/poll.hpp`/ |
| 14 | #include <common/fd-tracker/fd-tracker.hpp>cxx . . $ `<file>/src/common/fd-tracker/fd-tracker.hpp`/ |
| 15 | #include <common/hashtable/hashtable.hpp>cxx . . $ `<file>/src/common/hashtable/hashtable.hpp`/ |
| 16 | |
| 17 | #include <limits.h> |
| 18 | #include <urcu.h> |
| 19 | #include <urcu/wfcqueue.h> |
| 20 | |
| 21 | struct sessiond_trace_chunk_registrycxx . . $ sessiond_trace_chunk_registry#; |
| 22 | |
| 23 | /* |
| 24 | * Queue used to enqueue relay requests |
| 25 | */ |
| 26 | struct relay_conn_queuecxx . . $ relay_conn_queue# { |
| 27 | struct cds_wfcq_head headcxx . . $ relay_conn_queue#head.; |
| 28 | struct cds_wfcq_tail tailcxx . . $ relay_conn_queue#tail.; |
| 29 | int32_t futexcxx . . $ relay_conn_queue#futex.; |
| 30 | }; |
| 31 | |
| 32 | enum relay_group_output_bycxx . . $ relay_group_output_by# { |
| 33 | RELAYD_GROUP_OUTPUT_BY_UNKNOWNcxx . . $ RELAYD_GROUP_OUTPUT_BY_UNKNOWN., |
| 34 | RELAYD_GROUP_OUTPUT_BY_HOSTcxx . . $ RELAYD_GROUP_OUTPUT_BY_HOST., |
| 35 | RELAYD_GROUP_OUTPUT_BY_SESSIONcxx . . $ RELAYD_GROUP_OUTPUT_BY_SESSION., |
| 36 | }; |
| 37 | |
| 38 | /* |
| 39 | * Contains stream indexed by ID. This is important since many commands lookup |
| 40 | * streams only by ID thus also keeping them in this hash table makes the |
| 41 | * search O(1). |
| 42 | */ |
| 43 | extern struct lttng_htcxx . . $ lttng_ht# *sessions_htcxx . . $ sessions_ht.; |
| 44 | extern struct lttng_htcxx . . $ lttng_ht# *relay_streams_htcxx . . $ relay_streams_ht.; |
| 45 | extern struct lttng_htcxx . . $ lttng_ht# *viewer_sessions_htcxx . . $ viewer_sessions_ht.; |
| 46 | extern struct lttng_htcxx . . $ lttng_ht# *viewer_streams_htcxx . . $ viewer_streams_ht.; |
| 47 | extern struct sessiond_trace_chunk_registrycxx . . $ sessiond_trace_chunk_registry# *sessiond_trace_chunk_registrycxx . . $ sessiond_trace_chunk_registry.; |
| 48 | |
| 49 | extern char *opt_output_pathcxx . . $ opt_output_path.; |
| 50 | extern const char *tracing_group_namecxx . . $ tracing_group_name.; |
| 51 | extern const char *const config_section_namecxx . . $ config_section_name.; |
| 52 | extern enum relay_group_output_bycxx . . $ relay_group_output_by# opt_group_output_bycxx . . $ opt_group_output_by.; |
| 53 | |
| 54 | extern struct fd_trackercxx . . $ fd_tracker# *the_fd_trackercxx . . $ the_fd_tracker.; |
| 55 | |
| 56 | void lttng_relay_notify_readycxx . . $ lttng_relay_notify_ready(49f6e7a06ebc5aa8).(); |
| 57 | int lttng_relay_stop_threadscxx . . $ lttng_relay_stop_threads(b126dc7c1de90089).(); |
| 58 | |
| 59 | int relayd_init_thread_quit_pipecxx . . $ relayd_init_thread_quit_pipe(b126dc7c1de90089).(); |
| 60 | int relayd_notify_thread_quit_pipecxx . . $ relayd_notify_thread_quit_pipe(b126dc7c1de90089).(); |
| 61 | void relayd_close_thread_quit_pipecxx . . $ relayd_close_thread_quit_pipe(49f6e7a06ebc5aa8).(); |
| 62 | bool relayd_is_thread_quit_pipecxx . . $ relayd_is_thread_quit_pipe(83c267b20bac841a).(const int fd); |
| 63 | |
| 64 | int create_named_thread_poll_setcxx . . $ create_named_thread_poll_set(cee7e86c9f2c8344).(struct lttng_poll_eventcxx . . $ `src/common/compat/poll.hpp:71:9`! *events, int size, const char *name); |
| 65 | |
| 66 | #endif /* LTTNG_RELAYD_H */ |