projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add --session feature
[lttng-tools.git]
/
include
/
lttng
/
liblttngctl.h
diff --git
a/include/lttng/liblttngctl.h
b/include/lttng/liblttngctl.h
index eadc74a606d0da95fef91ccf1eca3e20c45c980c..df97313429143d2eb6902f2cd1a80747babe61d7 100644
(file)
--- a/
include/lttng/liblttngctl.h
+++ b/
include/lttng/liblttngctl.h
@@
-19,6
+19,9
@@
#ifndef _LIBLTTNGCTL_H
#define _LIBLTTNGCTL_H
#ifndef _LIBLTTNGCTL_H
#define _LIBLTTNGCTL_H
+#include <limits.h>
+#include <uuid/uuid.h>
+
/* Default unix group name for tracing.
*/
#define DEFAULT_TRACING_GROUP "tracing"
/* Default unix group name for tracing.
*/
#define DEFAULT_TRACING_GROUP "tracing"
@@
-28,16
+31,25
@@
*/
#define LTTNG_SESSIOND_PATH_ENV "LTTNG_SESSIOND_PATH"
*/
#define LTTNG_SESSIOND_PATH_ENV "LTTNG_SESSIOND_PATH"
-/*
- * From libuuid
+/* From libuuid
*/
#define UUID_STR_LEN 37
*/
#define UUID_STR_LEN 37
-extern int lttng_create_session(const char *name, char *session_id);
+/* Simple structure representing a session.
+ */
+struct lttng_session {
+ char name[NAME_MAX];
+ char uuid[UUID_STR_LEN];
+};
+
+extern int lttng_create_session(char *name, uuid_t *session_id);
+extern int lttng_destroy_session(uuid_t *uuid);
extern int lttng_connect_sessiond(void);
extern int lttng_set_tracing_group(const char *name);
extern int lttng_check_session_daemon(void);
extern const char *lttng_get_readable_code(int code);
extern int lttng_connect_sessiond(void);
extern int lttng_set_tracing_group(const char *name);
extern int lttng_check_session_daemon(void);
extern const char *lttng_get_readable_code(int code);
-extern size_t lttng_ust_list_apps(pid_t **pids);
+extern int lttng_ust_list_apps(pid_t **pids);
+extern int lttng_list_sessions(struct lttng_session **sessions);
+extern void lttng_set_current_session_uuid(char *uuid);
#endif /* _LIBLTTNGCTL_H */
#endif /* _LIBLTTNGCTL_H */
This page took
0.031178 seconds
and
4
git commands to generate.