#define KERNEL_EVENT_INIT_LIST_SIZE 64
int kernel_add_channel_context(struct ltt_kernel_channel *chan, struct ltt_kernel_context *ctx);
-int kernel_create_session(struct ltt_session *session);
+int kernel_create_session(const ltt_session::locked_ref& session);
int kernel_create_channel(struct ltt_kernel_session *session, struct lttng_channel *chan);
int kernel_create_event(struct lttng_event *ev,
struct ltt_kernel_channel *channel,
const struct consumer_output *output,
uint64_t nb_packets_per_stream);
int kernel_syscall_mask(int chan_fd, char **syscall_mask, uint32_t *nr_bits);
-enum lttng_error_code kernel_rotate_session(struct ltt_session *session);
-enum lttng_error_code kernel_clear_session(struct ltt_session *session);
+enum lttng_error_code kernel_rotate_session(const ltt_session::locked_ref& session);
+enum lttng_error_code kernel_clear_session(const ltt_session::locked_ref& session);
int init_kernel_workarounds();
int kernel_supports_ring_buffer_snapshot_sample_positions();