Add kretprobe support (new --function implementation)
[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 /* LTTng kernel tracer modules list */
28 const char *kernel_modules_list[] = {
29 "lib-ring-buffer",
30 "ltt-relay",
31 "ltt-ring-buffer-client-discard",
32 "ltt-ring-buffer-client-overwrite",
33 "ltt-ring-buffer-metadata-client",
34 "ltt-ring-buffer-client-mmap-discard",
35 "ltt-ring-buffer-client-mmap-overwrite",
36 "ltt-ring-buffer-metadata-mmap-client",
37 "lttng-ftrace",
38 "lttng-kprobes",
39 "lttng-kretprobes",
40 "lttng-probe-block",
41 "lttng-probe-irq",
42 "lttng-probe-kvm",
43 "lttng-probe-lttng",
44 "lttng-probe-sched",
45 "lttng-probe-syscalls",
46 "lttng-types",
47 NULL,
48 };
49
50 extern const char default_home_dir[],
51 default_tracing_group[],
52 default_ust_sock_dir[],
53 default_global_apps_pipe[];
54
55 /*
56 * This contains extra data needed for processing a command received by the
57 * session daemon from the lttng client.
58 */
59 struct command_ctx {
60 int ust_sock;
61 unsigned int lttng_msg_size;
62 struct ltt_session *session;
63 struct lttcomm_lttng_msg *llm;
64 struct lttcomm_session_msg *lsm;
65 };
66
67 #endif /* _LTT_SESSIOND_H */
This page took 0.03026 seconds and 4 git commands to generate.