2 * Copyright (C) 2012 - Julien Desfossez <jdesfossez@efficios.com>
3 * David Goulet <dgoulet@efficios.com>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License, version 2 only,
7 * as published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #ifndef LTTNG_RELAYD_H
20 #define LTTNG_RELAYD_H
25 #include <urcu/wfqueue.h>
27 #include <common/hashtable/hashtable.h>
30 * Queue used to enqueue relay requests
32 struct relay_conn_queue
{
33 struct cds_wfq_queue queue
;
37 struct relay_local_data
{
38 struct lttng_ht
*sessions_ht
;
41 extern char *opt_output_path
;
44 * Contains stream indexed by ID. This is important since many commands lookup
45 * streams only by ID thus also keeping them in this hash table makes the
46 * search O(1) instead of iterating over the ctf_traces_ht of the session.
48 extern struct lttng_ht
*relay_streams_ht
;
50 extern struct lttng_ht
*viewer_streams_ht
;
51 extern struct lttng_ht
*indexes_ht
;
53 extern const char *tracing_group_name
;
55 extern const char * const config_section_name
;
57 extern int thread_quit_pipe
[2];
59 void lttng_relay_notify_ready(void);
61 #endif /* LTTNG_RELAYD_H */
This page took 0.03126 seconds and 5 git commands to generate.