Commit | Line | Data |
---|---|---|
fac6795d DG |
1 | /* Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca> |
2 | * | |
3 | * This program is free software; you can redistribute it and/or | |
4 | * modify it under the terms of the GNU General Public License | |
5 | * as published by the Free Software Foundation; either version 2 | |
6 | * of the License, or (at your option) any later version. | |
7 | * | |
8 | * This program is distributed in the hope that it will be useful, | |
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 | * GNU General Public License for more details. | |
12 | * | |
13 | * You should have received a copy of the GNU General Public License | |
14 | * along with this program; if not, write to the Free Software | |
15 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
fac6795d DG |
16 | */ |
17 | ||
18 | #ifndef _LTT_SESSIOND_H | |
19 | #define _LTT_SESSIOND_H | |
20 | ||
ca95a216 | 21 | #define DEFAULT_HOME_DIR "/tmp" |
686204ab MD |
22 | #define DEFAULT_UST_SOCK_DIR "/tmp/ust-app-socks" |
23 | #define DEFAULT_GLOBAL_APPS_PIPE "/tmp/ust-app-socks/global" | |
24 | ||
20fe2104 DG |
25 | /* |
26 | * Kernel tracer defines | |
27 | */ | |
28 | #define DEFAULT_KERNEL_TRACER_PATH "/mnt/debugfs/lttng" | |
29 | #define DEFAULT_KERNEL_OVERWRITE 0 | |
30 | #define DEFAULT_KERNEL_SUBBUF_SIZE 512 /* bytes */ | |
31 | #define DEFAULT_KERNEL_SUBBUF_NUM 2 /* Must always be a power of 2 */ | |
32 | #define DEFAULT_KERNEL_SWITCH_TIMER 0 /* usec */ | |
33 | #define DEFAULT_KERNEL_READ_TIMER 10000 /* usec */ | |
34 | ||
686204ab MD |
35 | extern const char default_home_dir[], |
36 | default_tracing_group[], | |
37 | default_ust_sock_dir[], | |
38 | default_global_apps_pipe[]; | |
fac6795d | 39 | |
5461b305 DG |
40 | /* |
41 | * This contains extra data needed for processing a command received by the | |
42 | * session daemon from the lttng client. | |
43 | */ | |
44 | struct command_ctx { | |
45 | int ust_sock; | |
46 | unsigned int lttng_msg_size; | |
47 | struct ltt_session *session; | |
48 | struct lttcomm_lttng_msg *llm; | |
49 | struct lttcomm_session_msg *lsm; | |
50 | }; | |
51 | ||
fac6795d | 52 | #endif /* _LTT_SESSIOND_H */ |