Add support for session daemon auto spawn
[lttng-tools.git] / include / lttng / liblttngctl.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; 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 _LIBLTTNGCTL_H
20 #define _LIBLTTNGCTL_H
21
22 /* Default unix group name for tracing.
23 */
24 #define DEFAULT_TRACING_GROUP "tracing"
25
26 /* Environment variable to set session daemon
27 * binary path.
28 */
29 #define LTTNG_SESSIOND_PATH_ENV "LTTNG_SESSIOND_PATH"
30
31 /*
32 * From libuuid
33 */
34 #define UUID_STR_LEN 37
35
36 extern int lttng_create_session(const char *name, char *session_id);
37 extern int lttng_connect_sessiond(void);
38 extern int lttng_set_tracing_group(const char *name);
39 extern int lttng_check_session_daemon(void);
40 extern const char *lttng_get_readable_code(int code);
41 extern size_t lttng_ust_list_apps(pid_t **pids);
42
43 #endif /* _LIBLTTNGCTL_H */
This page took 0.031051 seconds and 5 git commands to generate.