#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"
+#include "kernel.h"
/*
* Add kernel context to an event of a specific channel.
}
hashtable_get_next(channels, &iter);
}
- rcu_read_unlock();
-
if (!found && !no_event) {
ret = LTTCOMM_NO_EVENT;
goto error;
}
-
ret = LTTCOMM_OK;
-
error:
+ rcu_read_unlock();
return ret;
#endif
return 0;