Support new lttng-ust error code
[lttng-tools.git] / src / bin / lttng-sessiond / event.c
index 2173e414a0a015545478a671e3cd930f02b0bf83..a2e6c37effb853d43385cd5da1a4b89de11957c1 100644 (file)
@@ -343,7 +343,7 @@ int event_ust_enable_all_tracepoints(struct ltt_ust_session *usess, int domain,
                                ret = ust_app_enable_event_pid(usess, uchan, uevent,
                                                events[i].pid);
                                if (ret < 0) {
-                                       if (ret != -EEXIST) {
+                                       if (ret != -LTTNG_UST_ERR_EXIST) {
                                                ret = LTTNG_ERR_UST_ENABLE_FAIL;
                                                goto error;
                                        }
@@ -362,7 +362,7 @@ int event_ust_enable_all_tracepoints(struct ltt_ust_session *usess, int domain,
                        ret = ust_app_enable_event_pid(usess, uchan, uevent,
                                        events[i].pid);
                        if (ret < 0) {
-                               if (ret == -EEXIST) {
+                               if (ret == -LTTNG_UST_ERR_EXIST) {
                                        ret = LTTNG_ERR_UST_EVENT_EXIST;
                                        goto error;
                                } else {
@@ -455,7 +455,7 @@ int event_ust_enable_tracepoint(struct ltt_ust_session *usess, int domain,
                }
 
                if (ret < 0) {
-                       if (ret == -EEXIST) {
+                       if (ret == -LTTNG_UST_ERR_EXIST) {
                                ret = LTTNG_ERR_UST_EVENT_EXIST;
                                goto end;
                        } else {
@@ -529,7 +529,7 @@ int event_ust_disable_tracepoint(struct ltt_ust_session *usess, int domain,
        switch (domain) {
        case LTTNG_DOMAIN_UST:
                ret = ust_app_disable_event_glb(usess, uchan, uevent);
-               if (ret < 0 && ret != -EEXIST) {
+               if (ret < 0 && ret != -LTTNG_UST_ERR_EXIST) {
                        ret = LTTNG_ERR_UST_DISABLE_FAIL;
                        goto error;
                }
@@ -594,7 +594,7 @@ int event_ust_disable_all_tracepoints(struct ltt_ust_session *usess, int domain,
                        if (uevent != NULL && uevent->enabled == 1) {
                                ret = ust_app_disable_event_pid(usess, uchan, uevent,
                                                events[i].pid);
-                               if (ret < 0 && ret != -EEXIST) {
+                               if (ret < 0 && ret != -LTTNG_UST_ERR_EXIST) {
                                        ret = LTTNG_ERR_UST_DISABLE_FAIL;
                                        goto error;
                                }
This page took 0.023744 seconds and 4 git commands to generate.