struct ltt_ust_event *event;
const char *name;
- assert(node);
- assert(_key);
+ LTTNG_ASSERT(node);
+ LTTNG_ASSERT(_key);
event = caa_container_of(node, struct ltt_ust_event, node.node);
name = _key;
int ev_loglevel_value;
int ll_match;
- assert(node);
- assert(_key);
+ LTTNG_ASSERT(node);
+ LTTNG_ASSERT(_key);
event = caa_container_of(node, struct ltt_ust_event, node.node);
key = _key;
struct lttng_ht_iter iter;
struct ltt_ust_ht_key key;
- assert(name);
- assert(ht);
+ LTTNG_ASSERT(name);
+ LTTNG_ASSERT(ht);
key.name = name;
key.filter = filter;
struct lttng_ht_iter iter;
uint64_t key;
- assert(session);
+ LTTNG_ASSERT(session);
DBG3("Trace ust agent lookup for domain %d", domain_type);
{
struct ltt_ust_channel *luc;
- assert(chan);
+ LTTNG_ASSERT(chan);
luc = zmalloc(sizeof(struct ltt_ust_channel));
if (luc == NULL) {
size_t i;
int ret = 0;
- assert(exclusion);
+ LTTNG_ASSERT(exclusion);
for (i = 0; i < exclusion->count; ++i) {
size_t j;
struct ltt_ust_event *local_ust_event;
enum lttng_error_code ret = LTTNG_OK;
- assert(ev);
+ LTTNG_ASSERT(ev);
if (exclusion && validate_exclusion(exclusion)) {
ret = LTTNG_ERR_INVALID;
}
break;
case LTTNG_UST_ABI_CONTEXT_APP_CONTEXT:
- assert(uctx->ctx.u.app_ctx.provider_name);
- assert(uctx->ctx.u.app_ctx.ctx_name);
+ LTTNG_ASSERT(uctx->ctx.u.app_ctx.provider_name);
+ LTTNG_ASSERT(uctx->ctx.u.app_ctx.ctx_name);
if (strcmp(uctx->ctx.u.app_ctx.provider_name,
ctx->u.app_ctx.provider_name) ||
strcmp(uctx->ctx.u.app_ctx.ctx_name,
struct ltt_ust_context *uctx = NULL;
int utype;
- assert(ctx);
+ LTTNG_ASSERT(ctx);
utype = trace_ust_context_type_event_to_ust(ctx->ctx);
if (utype < 0) {
node.node) {
int ret = lttng_ht_del(id_tracker->ht, &iter);
- assert(!ret);
+ LTTNG_ASSERT(!ret);
destroy_id_tracker_node(tracker_node);
}
rcu_read_unlock();
goto end;
}
ret = lttng_ht_del(id_tracker->ht, &iter);
- assert(!ret);
+ LTTNG_ASSERT(!ret);
destroy_id_tracker_node(tracker_node);
end:
struct lttng_ht_iter iter;
struct ltt_ust_context *ctx;
- assert(ht);
+ LTTNG_ASSERT(ht);
rcu_read_lock();
cds_lfht_for_each_entry(ht->ht, &iter.iter, node, node) {
*/
void trace_ust_destroy_event(struct ltt_ust_event *event)
{
- assert(event);
+ LTTNG_ASSERT(event);
DBG2("Trace destroy UST event %s", event->attr.name);
free(event->filter_expression);
*/
void trace_ust_destroy_context(struct ltt_ust_context *ctx)
{
- assert(ctx);
+ LTTNG_ASSERT(ctx);
if (ctx->ctx.ctx == LTTNG_UST_ABI_CONTEXT_APP_CONTEXT) {
free(ctx->ctx.u.app_ctx.provider_name);
struct lttng_ht_node_str *node;
struct lttng_ht_iter iter;
- assert(events);
+ LTTNG_ASSERT(events);
rcu_read_lock();
cds_lfht_for_each_entry(events->ht, &iter.iter, node, node) {
ret = lttng_ht_del(events, &iter);
- assert(!ret);
+ LTTNG_ASSERT(!ret);
call_rcu(&node->head, destroy_event_rcu);
}
rcu_read_unlock();
*/
static void _trace_ust_destroy_channel(struct ltt_ust_channel *channel)
{
- assert(channel);
+ LTTNG_ASSERT(channel);
DBG2("Trace destroy UST channel %s", channel->name);
int ret;
struct lttng_ht_iter iter;
- assert(ht);
- assert(channel);
+ LTTNG_ASSERT(ht);
+ LTTNG_ASSERT(channel);
iter.iter.node = &channel->node.node;
ret = lttng_ht_del(ht, &iter);
- assert(!ret);
+ LTTNG_ASSERT(!ret);
}
/*
struct lttng_ht_node_str *node;
struct lttng_ht_iter iter;
- assert(channels);
+ LTTNG_ASSERT(channels);
rcu_read_lock();
cds_lfht_for_each_entry(channels->ht, &iter.iter, node, node) {
*/
static void destroy_domain_global(struct ltt_ust_domain_global *dom)
{
- assert(dom);
+ LTTNG_ASSERT(dom);
destroy_channels(dom->channels);
}
struct buffer_reg_uid *reg, *sreg;
struct lttng_ht_iter iter;
- assert(session);
+ LTTNG_ASSERT(session);
DBG2("Trace UST destroy session %" PRIu64, session->id);
cds_lfht_for_each_entry(session->agents->ht, &iter.iter, agt, node.node) {
int ret = lttng_ht_del(session->agents, &iter);
- assert(!ret);
+ LTTNG_ASSERT(!ret);
agent_destroy(agt);
}
rcu_read_unlock();