int ret;
LTTNG_ASSERT(channel);
+ LTTNG_ASSERT(!channel->is_deleted);
channel->metadata_cache = zmalloc<consumer_metadata_cache>();
if (!channel->metadata_cache) {
bool invoked_by_timer)
{
assert(channel);
+ assert(!channel->is_deleted);
assert(channel->metadata_cache);
if (consumer_metadata_cache_is_flushed(channel, offset, invoked_by_timer)) {
channel = (lttng_consumer_channel *) si->si_value.sival_ptr;
LTTNG_ASSERT(channel);
+ LTTNG_ASSERT(!channel->is_deleted);
if (channel->switch_timer_error) {
return;
auto *channel = (lttng_consumer_channel *) si->si_value.sival_ptr;
LTTNG_ASSERT(channel);
+ LTTNG_ASSERT(!channel->is_deleted);
if (channel->switch_timer_error) {
return;
LTTNG_ASSERT(channel);
LTTNG_ASSERT(channel->key);
+ LTTNG_ASSERT(!channel->is_deleted);
if (timer_interval_us == 0) {
/* No creation needed; not an error. */
LTTNG_ASSERT(channel);
LTTNG_ASSERT(channel->key);
+ LTTNG_ASSERT(!channel->is_deleted);
ret = consumer_channel_timer_start(&channel->switch_timer,
channel,
LTTNG_ASSERT(channel);
LTTNG_ASSERT(channel->key);
+ LTTNG_ASSERT(!channel->is_deleted);
ret = consumer_channel_timer_start(
&channel->live_timer, channel, live_timer_interval_us, LTTNG_CONSUMER_SIG_LIVE);
LTTNG_ASSERT(channel);
LTTNG_ASSERT(channel->key);
+ LTTNG_ASSERT(!channel->is_deleted);
LTTNG_ASSERT(!channel->monitor_timer_enabled);
ret = consumer_channel_timer_start(&channel->monitor_timer,
/* Go for channel deletion! */
free_channel = true;
}
- stream->chan = nullptr;
/*
* Nullify the stream reference so it is not used after deletion. The
int ret = 0;
LTTNG_ASSERT(channel);
+ LTTNG_ASSERT(!channel->is_deleted);
LTTNG_ASSERT(ctx);
if (ctx->on_recv_channel != nullptr) {
struct lttng_consumer_stream *stream = nullptr;
LTTNG_ASSERT(channel);
+ LTTNG_ASSERT(!channel->is_deleted);
LTTNG_ASSERT(ctx);
stream = consumer_stream_create(channel,
pthread_mutex_t *current_stream_lock = nullptr;
LTTNG_ASSERT(channel);
+ LTTNG_ASSERT(!channel->is_deleted);
LTTNG_ASSERT(ctx);
/*
struct lttng_ust_ctl_consumer_channel *ust_channel;
LTTNG_ASSERT(channel);
+ LTTNG_ASSERT(!channel->is_deleted);
LTTNG_ASSERT(attr);
LTTNG_ASSERT(ust_chanp);
LTTNG_ASSERT(channel->buffer_credentials.is_set);
uint64_t net_seq_idx = -1ULL;
LTTNG_ASSERT(channel);
+ LTTNG_ASSERT(!channel->is_deleted);
LTTNG_ASSERT(ctx);
LTTNG_ASSERT(sock >= 0);
LTTNG_ASSERT(ctx);
LTTNG_ASSERT(channel);
+ LTTNG_ASSERT(!channel->is_deleted);
LTTNG_ASSERT(attr);
/*
int ret = 0;
LTTNG_ASSERT(channel);
+ LTTNG_ASSERT(!channel->is_deleted);
LTTNG_ASSERT(ctx);
/* Send streams to the corresponding thread. */
int ret;
LTTNG_ASSERT(channel);
+ LTTNG_ASSERT(!channel->is_deleted);
LTTNG_ASSERT(channel->metadata_cache);
memset(&request, 0, sizeof(request));