size_t packet_context_len;
size_t event_context_len;
struct lttng_ust_ctx *chan_ctx;
- struct lttng_ust_ctx *event_ctx;
};
/*
}
offset += ctx_get_aligned_size(offset, client_ctx->chan_ctx,
client_ctx->packet_context_len);
- offset += ctx_get_aligned_size(offset, client_ctx->event_ctx,
- client_ctx->event_context_len);
*pre_header_padding = padding;
return offset - orig_offset;
}
}
ctx_record(ctx, lttng_chan, client_ctx->chan_ctx);
- ctx_record(ctx, lttng_chan, client_ctx->event_ctx);
lttng_ust_ring_buffer_align_ctx(ctx, ctx->largest_align);
return;
WARN_ON_ONCE(1);
}
ctx_record(ctx, lttng_chan, client_ctx->chan_ctx);
- ctx_record(ctx, lttng_chan, client_ctx->event_ctx);
lttng_ust_ring_buffer_align_ctx(ctx, ctx->largest_align);
}
event_id = (uint32_t) event_recorder->priv->parent.id;
client_ctx.chan_ctx = lttng_ust_rcu_dereference(lttng_chan->priv->ctx);
- client_ctx.event_ctx = lttng_ust_rcu_dereference(event_recorder->priv->parent.ctx);
/* Compute internal size of context structures. */
ctx_get_struct_size(ctx, client_ctx.chan_ctx, &client_ctx.packet_context_len);
- ctx_get_struct_size(ctx, client_ctx.event_ctx, &client_ctx.event_context_len);
nesting = lib_ring_buffer_nesting_inc(&client_config);
if (nesting < 0)
/* Remove from event hash table. */
cds_hlist_del(&event->priv->name_hlist_node);
- switch (event->type) {
- case LTTNG_UST_EVENT_TYPE_RECORDER:
- {
- struct lttng_ust_event_session_common_private *event_session_priv =
- caa_container_of(event->priv, struct lttng_ust_event_session_common_private, parent);
-
- lttng_destroy_context(event_session_priv->ctx);
- break;
- }
- case LTTNG_UST_EVENT_TYPE_NOTIFIER:
- break;
- default:
- abort();
- }
lttng_ust_event_free(event);
}
cds_list_for_each_entry(session_priv, &sessions, node) {
struct lttng_ust_channel_buffer_private *chan;
- struct lttng_ust_event_common_private *event_priv;
int ret;
ret = lttng_ust_context_set_provider_rcu(&session_priv->ctx,
if (ret)
abort();
}
- cds_list_for_each_entry(event_priv, &session_priv->events_head, node) {
- struct lttng_ust_event_session_common_private *event_session_priv =
- caa_container_of(event_priv, struct lttng_ust_event_session_common_private, parent);
-
- ret = lttng_ust_context_set_provider_rcu(&event_session_priv->ctx,
- name, get_size, record, get_value);
- if (ret)
- abort();
- }
}
}