| 1 | /* |
| 2 | * Copyright (C) 2011 - David Goulet <david.goulet@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_SESSIOND_H |
| 20 | #define _LTT_SESSIOND_H |
| 21 | |
| 22 | #define DEFAULT_HOME_DIR "/tmp" |
| 23 | #define DEFAULT_UST_SOCK_DIR DEFAULT_HOME_DIR "/ust-app-socks" |
| 24 | #define DEFAULT_GLOBAL_APPS_PIPE DEFAULT_UST_SOCK_DIR "/global" |
| 25 | #define DEFAULT_TRACE_OUTPUT DEFAULT_HOME_DIR "/lttng" |
| 26 | |
| 27 | /* |
| 28 | * Kernel tracer defines |
| 29 | */ |
| 30 | #define DEFAULT_KERNEL_TRACER_PATH "/mnt/debugfs/lttng" |
| 31 | |
| 32 | extern const char default_home_dir[], |
| 33 | default_tracing_group[], |
| 34 | default_ust_sock_dir[], |
| 35 | default_global_apps_pipe[]; |
| 36 | |
| 37 | /* |
| 38 | * This contains extra data needed for processing a command received by the |
| 39 | * session daemon from the lttng client. |
| 40 | */ |
| 41 | struct command_ctx { |
| 42 | int ust_sock; |
| 43 | unsigned int lttng_msg_size; |
| 44 | struct ltt_session *session; |
| 45 | struct lttcomm_lttng_msg *llm; |
| 46 | struct lttcomm_session_msg *lsm; |
| 47 | }; |
| 48 | |
| 49 | #endif /* _LTT_SESSIOND_H */ |