#include <lttng-sessiond-comm.h>
#include <lttngerr.h>
-#ifdef CONFIG_LTTNG_TOOLS_HAVE_UST
-#include <ust/lttng-ust-ctl.h>
-#include <ust/lttng-ust-abi.h>
-#else
-#include "lttng-ust-ctl.h"
-#include "lttng-ust-abi.h"
-#endif
-
#include "context.h"
#include "hashtable.h"
#include "kernel-ctl.h"
// ustctx, ustchan->obj, &context_data);
if (ret < 0) {
ret = LTTCOMM_UST_CONTEXT_FAIL;
+ rcu_read_unlock();
goto error;
}
} else {
ret = add_ustctx_to_event(ustsession, ustctx, ustchan, event_name);
if (ret < 0) {
ret = LTTCOMM_UST_CONTEXT_FAIL;
+ rcu_read_unlock();
goto error;
} else if (ret == 1) {
/* Event found and context added */