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]
/
ltt-sessiond
/
ltt-sessiond.c
diff --git
a/ltt-sessiond/ltt-sessiond.c
b/ltt-sessiond/ltt-sessiond.c
index eee4cc84fb1729cc02afc36a3f04d23251bc7d3d..6df78d8e3c40cb88d11301d66be4878aabd77fcf 100644
(file)
--- a/
ltt-sessiond/ltt-sessiond.c
+++ b/
ltt-sessiond/ltt-sessiond.c
@@
-587,6
+587,20
@@
static int process_client_msg(int sock, struct lttcomm_session_msg *lsm)
/* No auxiliary data so only send the llm struct. */
goto end;
}
/* No auxiliary data so only send the llm struct. */
goto end;
}
+ case UST_CREATE_TRACE:
+ {
+ int sock;
+ sock = connect_app(lsm->pid);
+
+ ret = ustctl_create_trace(sock, "auto");
+ if (ret < 0) {
+ ret = LTTCOMM_CREATE_FAIL;
+ } else {
+ ret = LTTCOMM_OK;
+ }
+
+ goto end;
+ }
case UST_LIST_APPS:
{
/* Stop right now if no apps */
case UST_LIST_APPS:
{
/* Stop right now if no apps */
This page took
0.024482 seconds
and
4
git commands to generate.