struct lttng_ust_shm_handle *handle;
cds_list_del(<tng_chan->priv->node);
- lttng_destroy_context(lttng_chan->ctx);
+ lttng_destroy_context(lttng_chan->priv->ctx);
chan = lttng_chan->chan;
handle = lttng_chan->handle;
channel_destroy(chan, handle, 0);
/* don't change it if session stop/restart */
if (chan->header_type)
continue;
- ctx = chan->pub->ctx;
+ ctx = chan->ctx;
if (ctx) {
nr_fields = ctx->nr_fields;
fields = ctx->fields;
/* Remove from event hash table. */
cds_hlist_del(&event_recorder->priv->hlist);
- lttng_destroy_context(event_recorder->ctx);
+ lttng_destroy_context(event_recorder->priv->ctx);
free(event_recorder->parent);
free(event_recorder->priv);
free(event_recorder);
if (ret)
abort();
cds_list_for_each_entry(chan, &session_priv->chan_head, node) {
- ret = lttng_ust_context_set_provider_rcu(&chan->pub->ctx,
+ ret = lttng_ust_context_set_provider_rcu(&chan->ctx,
name, get_size, record, get_value);
if (ret)
abort();
}
cds_list_for_each_entry(event_recorder_priv, &session_priv->events_head, node) {
- ret = lttng_ust_context_set_provider_rcu(&event_recorder_priv->pub->ctx,
+ ret = lttng_ust_context_set_provider_rcu(&event_recorder_priv->ctx,
name, get_size, record, get_value);
if (ret)
abort();