Kconsumerd use the output parameter
[lttng-tools.git] / include / lttng-kconsumerd.h
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
7 * as published by the Free Software Foundation; only verion 2
8 * of the License.
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-sessiond-comm.h>
24 #include "lttng-share.h"
25
26 /* Kernel consumer path */
27 #define KCONSUMERD_PATH LTTNG_RUNDIR "/kconsumerd"
28 #define KCONSUMERD_CMD_SOCK_PATH KCONSUMERD_PATH "/command"
29 #define KCONSUMERD_ERR_SOCK_PATH KCONSUMERD_PATH "/error"
30
31 /* Commands for kconsumerd */
32 enum kconsumerd_command {
33 ADD_STREAM,
34 UPDATE_STREAM, /* pause, delete, active depending on fd state */
35 STOP, /* inform the kconsumerd to quit when all fd has hang up */
36 };
37
38 /* State of each fd in consumerd */
39 enum kconsumerd_fd_state {
40 ACTIVE_FD,
41 PAUSE_FD,
42 DELETE_FD,
43 };
44
45 #endif /* _LTTNG_KCONSUMERD_H */
This page took 0.03032 seconds and 4 git commands to generate.