X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fevent.c;h=a2e6c37effb853d43385cd5da1a4b89de11957c1;hp=2173e414a0a015545478a671e3cd930f02b0bf83;hb=49c336c1679295a31b92223dca05feccfe3e3464;hpb=911a481190c7af4c043bb5482152a76e9787c5b5 diff --git a/src/bin/lttng-sessiond/event.c b/src/bin/lttng-sessiond/event.c index 2173e414a..a2e6c37ef 100644 --- a/src/bin/lttng-sessiond/event.c +++ b/src/bin/lttng-sessiond/event.c @@ -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; }