X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Ffilter.c;h=e887533050f8a5f298bbcd7944f63fac59eef416;hp=f0acffdc1dfc3287f6892253f59bc862711cd80c;hb=49c336c1679295a31b92223dca05feccfe3e3464;hpb=911a481190c7af4c043bb5482152a76e9787c5b5 diff --git a/src/bin/lttng-sessiond/filter.c b/src/bin/lttng-sessiond/filter.c index f0acffdc1..e88753305 100644 --- a/src/bin/lttng-sessiond/filter.c +++ b/src/bin/lttng-sessiond/filter.c @@ -155,17 +155,21 @@ int filter_ust_set(struct ltt_ust_session *usess, int domain, } end: + /* Must handle both local internal error and UST code. */ switch (ret) { case -EEXIST: + case -LTTNG_UST_ERR_EXIST: ret = LTTNG_ERR_FILTER_EXIST; break; case -ENOMEM: ret = LTTNG_ERR_FATAL; break; case -EINVAL: + case -LTTNG_UST_ERR_INVAL: ret = LTTNG_ERR_FILTER_INVAL; break; case -ENOSYS: + case -LTTNG_UST_ERR_NOSYS: ret = LTTNG_ERR_UNKNOWN_DOMAIN; break; default: