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