projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add ust create trace feature
[lttng-tools.git]
/
liblttngctl
/
liblttngctl.c
diff --git
a/liblttngctl/liblttngctl.c
b/liblttngctl/liblttngctl.c
index a15a26dff82f2e348cff63455829402ef780aa6d..a586b34f53a61d2ba6dd630204325d1f71a31835 100644
(file)
--- a/
liblttngctl/liblttngctl.c
+++ b/
liblttngctl/liblttngctl.c
@@
-167,6
+167,21
@@
const char *lttng_get_readable_code(int code)
return lttcomm_get_readable_code(code);
}
return lttcomm_get_readable_code(code);
}
+/*
+ * lttng_ust_create_trace
+ *
+ * Request a trace creation for pid.
+ */
+int lttng_ust_create_trace(pid_t pid)
+{
+ int ret;
+
+ lsm.pid = pid;
+ ret = ask_sessiond(UST_CREATE_TRACE, NULL);
+
+ return ret;
+}
+
/*
* lttng_ust_list_apps
*
/*
* lttng_ust_list_apps
*
@@
-280,6
+295,24
@@
int lttng_connect_sessiond(void)
return 0;
}
return 0;
}
+/*
+ * lttng_disconnect_sessiond
+ *
+ * Clean disconnect the session daemon.
+ */
+int lttng_disconnect_sessiond(void)
+{
+ int ret = 0;
+
+ if (connected) {
+ ret = lttcomm_close_unix_sock(sessiond_socket);
+ sessiond_socket = 0;
+ connected = 0;
+ }
+
+ return ret;
+}
+
/*
* lttng_set_current_session_uuid
*
/*
* lttng_set_current_session_uuid
*
This page took
0.024109 seconds
and
4
git commands to generate.