Move session data and functions to session.c/.h
[lttng-tools.git] / ltt-sessiond / ltt-sessiond.h
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.
16 */
17
18 #ifndef _LTT_SESSIOND_H
19 #define _LTT_SESSIOND_H
20
21 #define DEFAULT_HOME_DIR "/tmp"
22 #define DEFAULT_UST_SOCK_DIR "/tmp/ust-app-socks"
23 #define DEFAULT_GLOBAL_APPS_PIPE "/tmp/ust-app-socks/global"
24
25 extern const char default_home_dir[],
26 default_tracing_group[],
27 default_ust_sock_dir[],
28 default_global_apps_pipe[];
29
30 /* LTTng trace representation */
31 struct ltt_lttng_trace {
32 struct cds_list_head list;
33 char trace_name[NAME_MAX];
34 struct cds_list_head marker_list;
35 };
36
37 /* UST trace representation */
38 struct ltt_ust_trace {
39 struct cds_list_head list;
40 int shmid;
41 pid_t pid;
42 struct cds_list_head markers;
43 };
44
45 struct ltt_ust_marker {
46 struct cds_list_head list;
47 char *name;
48 char *channel;
49 };
50
51 /* Traceable application list */
52 struct ltt_traceable_app_list {
53 struct cds_list_head head;
54 };
55
56 /*
57 * Registered traceable applications. Libust registers
58 * to the session daemon and a linked list is kept
59 * of all running traceable app.
60 */
61 struct ltt_traceable_app {
62 struct cds_list_head list;
63 pid_t pid;
64 uid_t uid; /* User ID that owns the apps */
65 };
66
67 #endif /* _LTT_SESSIOND_H */
This page took 0.029736 seconds and 4 git commands to generate.