#include "lttng-tracer.h"
#include "string-utils.h"
#include "ust-events-internal.h"
+#include "context-internal.h"
#define OBJ_NAME_LEN 16
ret = session_objd;
goto objd_error;
}
- session->objd = session_objd;
- session->owner = owner;
+ session->priv->objd = session_objd;
+ session->priv->owner = owner;
return session_objd;
objd_error:
case LTTNG_UST_TRACEPOINT_FIELD_LIST:
return lttng_abi_tracepoint_field_list(owner);
case LTTNG_UST_WAIT_QUIESCENT:
- lttng_ust_synchronize_trace();
+ lttng_ust_urcu_synchronize_rcu();
return 0;
case LTTNG_UST_EVENT_NOTIFIER_GROUP_CREATE:
return lttng_abi_event_notifier_send_fd(owner,
goto invalid;
}
- if (session->been_active) {
+ if (session->priv->been_active) {
ret = -EBUSY;
goto active; /* Refuse to add channel to active session */
}
memcpy(<tng_chan->chan->backend.config,
transport->client_config,
sizeof(lttng_chan->chan->backend.config));
- cds_list_add(<tng_chan->node, &session->chan_head);
+ cds_list_add(<tng_chan->node, &session->priv->chan_head);
lttng_chan->header_type = 0;
lttng_chan->handle = channel_handle;
lttng_chan->type = type;
struct lttng_channel *channel = objd_private(objd);
if (channel)
- return lttng_ust_objd_unref(channel->session->objd, 0);
+ return lttng_ust_objd_unref(channel->session->priv->objd, 0);
return 0;
}