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 3590d7e444c685147cf74c3a2ece2e1de2831367..6df78d8e3c40cb88d11301d66be4878aabd77fcf 100644
(file)
--- a/
ltt-sessiond/ltt-sessiond.c
+++ b/
ltt-sessiond/ltt-sessiond.c
@@
-217,7
+217,7
@@
static void *thread_manage_clients(void *data)
* request of the client.
*/
ret = lttcomm_recv_unix_sock(sock, &lsm, sizeof(lsm));
* request of the client.
*/
ret = lttcomm_recv_unix_sock(sock, &lsm, sizeof(lsm));
- if (ret < 0) {
+ if (ret <
=
0) {
continue;
}
continue;
}
@@
-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 */
@@
-897,6
+911,7
@@
static void sighandler(int sig)
{
switch (sig) {
case SIGPIPE:
{
switch (sig) {
case SIGPIPE:
+ return;
case SIGINT:
case SIGTERM:
cleanup();
case SIGINT:
case SIGTERM:
cleanup();
This page took
0.023979 seconds
and
4
git commands to generate.