Rename liblttsessiondcomm to liblttng-sessiond-comm, install it.
[lttng-tools.git] / include / lttng-kconsumerd.h
CommitLineData
5dc18550
DG
1/*
2 * Copyright (C) 2011 - Julien Desfossez <julien.desfossez@polymtl.ca>
3 * David Goulet <david.goulet@polymtl.ca>
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
82a3637f
DG
7 * as published by the Free Software Foundation; only verion 2
8 * of the License.
5dc18550
DG
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 */
19
20#ifndef _LTTNG_KCONSUMERD_H
21#define _LTTNG_KCONSUMERD_H
22
1526bda7 23#include <lttng/lttng-sessiond-comm.h>
5dc18550
DG
24#include "lttng-share.h"
25
26/* Kernel consumer path */
1526bda7 27#define KCONSUMERD_PATH LTTNG_RUNDIR "/kconsumerd"
5dc18550
DG
28#define KCONSUMERD_CMD_SOCK_PATH KCONSUMERD_PATH "/command"
29#define KCONSUMERD_ERR_SOCK_PATH KCONSUMERD_PATH "/error"
30
31/* Commands for kconsumerd */
32enum kconsumerd_command {
33 ADD_STREAM,
9d26659a
JD
34 UPDATE_STREAM, /* pause, delete, active depending on fd state */
35 STOP, /* inform the kconsumerd to quit when all fd has hang up */
5dc18550
DG
36};
37
38/* State of each fd in consumerd */
39enum kconsumerd_fd_state {
40 ACTIVE_FD,
41 PAUSE_FD,
42 DELETE_FD,
43};
44
45#endif /* _LTTNG_KCONSUMERD_H */
This page took 0.032689 seconds and 4 git commands to generate.