projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support new lttng-ust error code
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
event.c
diff --git
a/src/bin/lttng-sessiond/event.c
b/src/bin/lttng-sessiond/event.c
index 2173e414a0a015545478a671e3cd930f02b0bf83..a2e6c37effb853d43385cd5da1a4b89de11957c1 100644
(file)
--- 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) {
ret = ust_app_enable_event_pid(usess, uchan, uevent,
events[i].pid);
if (ret < 0) {
- if (ret != -
E
EXIST) {
+ if (ret != -
LTTNG_UST_ERR_
EXIST) {
ret = LTTNG_ERR_UST_ENABLE_FAIL;
goto error;
}
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) {
ret = ust_app_enable_event_pid(usess, uchan, uevent,
events[i].pid);
if (ret < 0) {
- if (ret == -
E
EXIST) {
+ if (ret == -
LTTNG_UST_ERR_
EXIST) {
ret = LTTNG_ERR_UST_EVENT_EXIST;
goto error;
} else {
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 < 0) {
- if (ret == -
E
EXIST) {
+ if (ret == -
LTTNG_UST_ERR_
EXIST) {
ret = LTTNG_ERR_UST_EVENT_EXIST;
goto end;
} else {
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);
switch (domain) {
case LTTNG_DOMAIN_UST:
ret = ust_app_disable_event_glb(usess, uchan, uevent);
- if (ret < 0 && ret != -
E
EXIST) {
+ if (ret < 0 && ret != -
LTTNG_UST_ERR_
EXIST) {
ret = LTTNG_ERR_UST_DISABLE_FAIL;
goto error;
}
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 (uevent != NULL && uevent->enabled == 1) {
ret = ust_app_disable_event_pid(usess, uchan, uevent,
events[i].pid);
- if (ret < 0 && ret != -
E
EXIST) {
+ if (ret < 0 && ret != -
LTTNG_UST_ERR_
EXIST) {
ret = LTTNG_ERR_UST_DISABLE_FAIL;
goto error;
}
ret = LTTNG_ERR_UST_DISABLE_FAIL;
goto error;
}
This page took
0.02506 seconds
and
4
git commands to generate.