+ ret = -ENOSYS;
+ goto error;
+ }
+
+ /* Lookup context before adding it */
+ lttng_ht_lookup(uevent->ctx, (void *)((unsigned long)uctx->ctx.ctx), &iter);
+ uctx_node = lttng_ht_iter_get_node_ulong(&iter);
+ if (uctx_node != NULL) {
+ ret = -EEXIST;