1 /* Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
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.
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.
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.
19 #ifndef _LTT_SESSIOND_H
20 #define _LTT_SESSIOND_H
22 #define DEFAULT_HOME_DIR "/tmp"
23 #define DEFAULT_UST_SOCK_DIR "/tmp/ust-app-socks"
24 #define DEFAULT_GLOBAL_APPS_PIPE "/tmp/ust-app-socks/global"
26 extern const char default_home_dir
[],
27 default_tracing_group
[],
28 default_ust_sock_dir
[],
29 default_global_apps_pipe
[];
31 /* LTTng trace representation */
32 struct ltt_lttng_trace
{
33 struct cds_list_head list
;
34 char trace_name
[NAME_MAX
];
35 struct cds_list_head marker_list
;
38 /* UST trace representation */
39 struct ltt_ust_trace
{
40 struct cds_list_head list
;
42 char trace_name
[NAME_MAX
];
43 struct cds_list_head markers
;
46 struct ltt_ust_marker
{
47 struct cds_list_head list
;
52 /* Global session list */
53 struct ltt_session_list
{
54 struct cds_list_head head
;
57 /* Traceable application list */
58 struct ltt_traceable_app_list
{
59 struct cds_list_head head
;
63 * Registered traceable applications. Libust registers
64 * to the session daemon and a linked list is kept
65 * of all running traceable app.
67 struct ltt_traceable_app
{
68 struct cds_list_head list
;
70 uid_t uid
; /* User ID that owns the apps */
74 * ltt-session - This data structure contains information needed
75 * to identify a tracing session for both LTTng and UST.
79 struct cds_list_head list
;
81 struct cds_list_head ust_traces
;
82 struct cds_list_head lttng_traces
;
87 #endif /* _LTT_SESSIOND_H */