Unload lttng modules when sessiond quits
[lttng-tools.git] / ltt-sessiond / ltt-sessiond.h
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; only version 2
7 * of the License.
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 struct module_param {
28 const char *name;
29 int required;
30 };
31
32 /* LTTng kernel tracer modules list */
33 const struct module_param kernel_modules_list[] = {
34 /* used by ltt-relay, unload last */
35 { "lttng-ftrace", 0 },
36 { "lttng-kprobes", 0 },
37 { "lttng-kretprobes", 0 },
38
39 { "lib-ring-buffer", 1 },
40 { "ltt-relay", 1 },
41 { "ltt-ring-buffer-client-discard", 1 },
42 { "ltt-ring-buffer-client-overwrite", 1 },
43 { "ltt-ring-buffer-metadata-client", 1 },
44 { "ltt-ring-buffer-client-mmap-discard", 1 },
45 { "ltt-ring-buffer-client-mmap-overwrite", 1 },
46 { "ltt-ring-buffer-metadata-mmap-client", 1 },
47 { "lttng-probe-lttng", 1 },
48 { "lttng-types", 0 },
49 { "lttng-probe-block", 0 },
50 { "lttng-probe-irq", 0 },
51 { "lttng-probe-kvm", 0 },
52 { "lttng-probe-sched", 0 },
53 { "lttng-probe-syscalls", 0 },
54 };
55
56 extern const char default_home_dir[],
57 default_tracing_group[],
58 default_ust_sock_dir[],
59 default_global_apps_pipe[];
60
61 /*
62 * This contains extra data needed for processing a command received by the
63 * session daemon from the lttng client.
64 */
65 struct command_ctx {
66 int ust_sock;
67 unsigned int lttng_msg_size;
68 struct ltt_session *session;
69 struct lttcomm_lttng_msg *llm;
70 struct lttcomm_session_msg *lsm;
71 };
72
73 #endif /* _LTT_SESSIOND_H */
This page took 0.030342 seconds and 4 git commands to generate.