Change wfq usages for wfcq
[lttng-tools.git] / src / bin / lttng-relayd / lttng-relayd.h
CommitLineData
b8aa1682
JD
1/*
2 * Copyright (C) 2012 - Julien Desfossez <jdesfossez@efficios.com>
3 * David Goulet <dgoulet@efficios.com>
4 *
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.
8 *
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
12 * more details.
13 *
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.
17 */
18
7717e361
MD
19#ifndef LTTNG_RELAYD_H
20#define LTTNG_RELAYD_H
b8aa1682
JD
21
22#define _LGPL_SOURCE
d3e2ba59 23#include <limits.h>
b8aa1682 24#include <urcu.h>
8bdee6e2 25#include <urcu/wfcqueue.h>
d3e2ba59 26
0f907de1 27#include <common/hashtable/hashtable.h>
d3e2ba59 28
b8aa1682
JD
29/*
30 * Queue used to enqueue relay requests
31 */
58eb9381 32struct relay_conn_queue {
8bdee6e2
SM
33 struct cds_wfcq_head head;
34 struct cds_wfcq_tail tail;
7717e361 35 int32_t futex;
b8aa1682
JD
36};
37
d3e2ba59
JD
38struct relay_local_data {
39 struct lttng_ht *sessions_ht;
b8aa1682
JD
40};
41
0f907de1
JD
42extern char *opt_output_path;
43
2a174661
DG
44/*
45 * Contains stream indexed by ID. This is important since many commands lookup
46 * streams only by ID thus also keeping them in this hash table makes the
47 * search O(1) instead of iterating over the ctf_traces_ht of the session.
48 */
d3e2ba59 49extern struct lttng_ht *relay_streams_ht;
2a174661 50
92c6ca54 51extern struct lttng_ht *viewer_streams_ht;
0a6518b0 52extern struct lttng_ht *indexes_ht;
d3e2ba59 53
65931c8b
MD
54extern const char *tracing_group_name;
55
cd60b05a
JG
56extern const char * const config_section_name;
57
bcf4a440
DG
58extern int thread_quit_pipe[2];
59
3fd27398 60void lttng_relay_notify_ready(void);
d3e2ba59 61
7717e361 62#endif /* LTTNG_RELAYD_H */
This page took 0.041309 seconds and 5 git commands to generate.