Fix rest of the code to support compat layer
[lttng-tools.git] / src / bin / lttng-sessiond / lttng-sessiond.h
CommitLineData
8c0faa1d
DG
1/*
2 * Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
fac6795d
DG
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
82a3637f
DG
6 * as published by the Free Software Foundation; only version 2
7 * of the License.
8c0faa1d 8 *
fac6795d
DG
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
050349bb 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
fac6795d 12 * GNU General Public License for more details.
8c0faa1d 13 *
fac6795d
DG
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
fac6795d
DG
17 */
18
19#ifndef _LTT_SESSIOND_H
20#define _LTT_SESSIOND_H
21
099e26bd 22#define _LGPL_SOURCE
f6a9efaa 23#include <urcu.h>
099e26bd
DG
24#include <urcu/wfqueue.h>
25
10a8a223 26#include <common/sessiond-comm/sessiond-comm.h>
a4405090 27#include <common/compat/socket.h>
10a8a223
DG
28
29#include "session.h"
56fff090 30#include "ust-app.h"
099e26bd 31
096102bd 32const char *module_proc_lttng = "/proc/lttng";
20fe2104 33
686204ab
MD
34extern const char default_home_dir[],
35 default_tracing_group[],
36 default_ust_sock_dir[],
37 default_global_apps_pipe[];
fac6795d 38
5461b305
DG
39/*
40 * This contains extra data needed for processing a command received by the
41 * session daemon from the lttng client.
42 */
43struct command_ctx {
44 int ust_sock;
45 unsigned int lttng_msg_size;
46 struct ltt_session *session;
47 struct lttcomm_lttng_msg *llm;
48 struct lttcomm_session_msg *lsm;
a4405090 49 lttng_sock_cred creds;
5461b305
DG
50};
51
099e26bd
DG
52struct ust_command {
53 int sock;
54 struct ust_register_msg reg_msg;
55 struct cds_wfq_node node;
56};
57
58/*
59 * Queue used to enqueue UST registration request (ust_commant) and protected
60 * by a futex with a scheme N wakers / 1 waiters. See futex.c/.h
61 */
62struct ust_cmd_queue {
63 int32_t futex;
64 struct cds_wfq_queue queue;
65};
66
fac6795d 67#endif /* _LTT_SESSIOND_H */
This page took 0.030724 seconds and 4 git commands to generate.