Fix handling of sessiond respawn after a SIGKILL
[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
23#include "lttng-share.h"
24
25/* Kernel consumer path */
26#define KCONSUMERD_PATH LTTNG_RUNDIR "/kconsumerd"
27#define KCONSUMERD_CMD_SOCK_PATH KCONSUMERD_PATH "/command"
28#define KCONSUMERD_ERR_SOCK_PATH KCONSUMERD_PATH "/error"
29
30/* Commands for kconsumerd */
31enum kconsumerd_command {
32 ADD_STREAM,
9d26659a
JD
33 UPDATE_STREAM, /* pause, delete, active depending on fd state */
34 STOP, /* inform the kconsumerd to quit when all fd has hang up */
5dc18550
DG
35};
36
37/* State of each fd in consumerd */
38enum kconsumerd_fd_state {
39 ACTIVE_FD,
40 PAUSE_FD,
41 DELETE_FD,
42};
43
44#endif /* _LTTNG_KCONSUMERD_H */
This page took 0.024588 seconds and 4 git commands to generate.