Fix: remove duplicate set ust event filter
[lttng-tools.git] / src / bin / lttng-sessiond / ust-app.c
index dd8d103fd1d9c2773fe9f032d1389cedd09f32d3..6430c83f705494749c5b64a33305be1569e6e551 100644 (file)
@@ -2350,7 +2350,7 @@ skip_setup:
        /* This start the UST tracing */
        ret = ustctl_start_session(app->sock, ua_sess->handle);
        if (ret < 0) {
-               ERR("Error starting tracing for app pid: %d", app->pid);
+               ERR("Error starting tracing for app pid: %d (ret: %d)", app->pid, ret);
                goto error_rcu_unlock;
        }
 
@@ -2402,7 +2402,7 @@ int ust_app_stop_trace(struct ltt_ust_session *usess, struct ust_app *app)
         * from either the application manager thread or the command thread. Simply
         * indicate that this is a stop error.
         */
-       if (ua_sess->started == 1) {
+       if (!ua_sess->started) {
                goto error_rcu_unlock;
        }
 
@@ -2411,7 +2411,7 @@ int ust_app_stop_trace(struct ltt_ust_session *usess, struct ust_app *app)
        /* This inhibits UST tracing */
        ret = ustctl_stop_session(app->sock, ua_sess->handle);
        if (ret < 0) {
-               ERR("Error stopping tracing for app pid: %d", app->pid);
+               ERR("Error stopping tracing for app pid: %d (ret: %d)", app->pid, ret);
                goto error_rcu_unlock;
        }
 
@@ -2651,12 +2651,6 @@ void ust_app_global_update(struct ltt_ust_session *usess, int sock)
                                /* FIXME: Should we quit here or continue... */
                                continue;
                        }
-
-                       ret = set_ust_event_filter(ua_event, app);
-                       if (ret < 0) {
-                               /* FIXME: Should we quit here or continue... */
-                               continue;
-                       }
                }
        }
 
This page took 0.023812 seconds and 4 git commands to generate.