static void rcu_destroy_ctf_trace(struct rcu_head *rcu_head)
{
struct ctf_trace *trace =
- caa_container_of(rcu_head, struct ctf_trace, rcu_node);
+ lttng::utils::container_of(rcu_head, &ctf_trace::rcu_node);
free(trace);
}
static void ctf_trace_release(struct urcu_ref *ref)
{
struct ctf_trace *trace =
- caa_container_of(ref, struct ctf_trace, ref);
+ lttng::utils::container_of(ref, &ctf_trace::ref);
int ret;
struct lttng_ht_iter iter;
pthread_mutex_init(&trace->stream_list_lock, NULL);
lttng_ht_add_str(session->ctf_traces_ht, &trace->node);
- DBG("Created ctf_trace %" PRIu64 "of session \"%s\" from host \"%s\" with path: %s",
+ DBG("Created ctf_trace %" PRIu64 " of session \"%s\" from host \"%s\" with path: %s",
trace->id, session->session_name, session->hostname,
subpath);
DBG("CTF Trace path %s not found", subpath);
goto end;
}
- trace = caa_container_of(node, struct ctf_trace, node);
+ trace = lttng::utils::container_of(node, &ctf_trace::node);
if (!ctf_trace_get(trace)) {
trace = NULL;
}