Move accept sequence
[lttng-tools.git] / kconsumerd / kconsumerd.h
1 /*
2 * Copyright (C) 2011 - Julien Desfossez <julien.desfossez@polymtl.ca>
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
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
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.
17 */
18
19 #ifndef _LTT_KCONSUMERD_H
20 #define _LTT_KCONSUMERD_H
21
22 /* timeout of 1s on poll to ensure the fd list is updated when needed */
23 #define POLL_TIMEOUT 1000
24
25 struct ltt_kconsumerd_fd_list {
26 struct cds_list_head head;
27 };
28
29 /*
30 * Internal representation of the FDs,
31 * sessiond_fd is used to identify uniquely a fd
32 */
33 struct ltt_kconsumerd_fd {
34 struct cds_list_head list;
35 int sessiond_fd; /* used to identify uniquely a fd with sessiond */
36 int consumerd_fd; /* fd to consume */
37 int out_fd; /* output file to write the data */
38 off_t out_fd_offset; /* write position in the output file descriptor */
39 char path_name[PATH_MAX]; /* tracefile name */
40 enum lttcomm_kconsumerd_fd_state state;
41 unsigned long max_sb_size; /* the subbuffer size for this channel */
42 };
43
44 #endif /* _LTT_KCONSUMERD_H */
This page took 0.034966 seconds and 4 git commands to generate.