}
/* Same layout. */
uevent->filter = (struct lttng_ust_filter_bytecode *) bytecode;
+ uevent->filter->seqnum = usess->filter_seq_num;
switch (domain) {
case LTTNG_DOMAIN_UST:
if (ret < 0) {
goto error;
}
+ usess->filter_seq_num++;
break;
default:
ret = -ENOSYS;
}
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: