Add ust create trace feature
[lttng-tools.git] / include / lttng / liblttngctl.h
CommitLineData
826d496d
MD
1/*
2 * Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
fac6795d
DG
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.
fac6795d
DG
17 */
18
19#ifndef _LIBLTTNGCTL_H
20#define _LIBLTTNGCTL_H
21
57167058 22#include <limits.h>
8028d920 23#include <uuid/uuid.h>
57167058 24
5b8719f5
DG
25/* Default unix group name for tracing.
26 */
fac6795d
DG
27#define DEFAULT_TRACING_GROUP "tracing"
28
5b8719f5
DG
29/* Environment variable to set session daemon
30 * binary path.
31 */
32#define LTTNG_SESSIOND_PATH_ENV "LTTNG_SESSIOND_PATH"
33
57167058 34/* From libuuid
fac6795d
DG
35 */
36#define UUID_STR_LEN 37
37
57167058
DG
38/* Simple structure representing a session.
39 */
40struct lttng_session {
41 char name[NAME_MAX];
42 char uuid[UUID_STR_LEN];
43};
44
8028d920
DG
45extern int lttng_create_session(char *name, uuid_t *session_id);
46extern int lttng_destroy_session(uuid_t *uuid);
fac6795d 47extern int lttng_connect_sessiond(void);
87378cf5 48extern int lttng_disconnect_sessiond(void);
fac6795d
DG
49extern int lttng_set_tracing_group(const char *name);
50extern int lttng_check_session_daemon(void);
51extern const char *lttng_get_readable_code(int code);
ca95a216
DG
52extern int lttng_ust_list_apps(pid_t **pids);
53extern int lttng_list_sessions(struct lttng_session **sessions);
e8be5f4f 54extern void lttng_set_current_session_uuid(char *uuid);
df0da139 55extern int lttng_ust_create_trace(pid_t pid);
fac6795d
DG
56
57#endif /* _LIBLTTNGCTL_H */
This page took 0.025387 seconds and 4 git commands to generate.