#include <lttng/ust-abi.h> /* for LTTNG_UST_SYM_NAME_LEN */
#include <usterr-signal-safe.h>
-#include <helper.h>
+#include <ust-helper.h>
#include "tracepoint-internal.h"
#include "lttng-tracer-core.h"
if (old) {
struct tp_probes *tp_probes = caa_container_of(old,
struct tp_probes, probes[0]);
- lttng_ust_synchronize_trace();
+ lttng_ust_urcu_synchronize_rcu();
free(tp_probes);
}
}
release_queue_need_update = 0;
/* Wait for grace period between all sync_callsites and free. */
- lttng_ust_synchronize_trace();
+ lttng_ust_urcu_synchronize_rcu();
cds_list_for_each_entry_safe(pos, next, &release_probes, u.list) {
cds_list_del(&pos->u.list);
tracepoint_update_probes();
/* Wait for grace period between update_probes and free. */
- lttng_ust_synchronize_trace();
+ lttng_ust_urcu_synchronize_rcu();
cds_list_for_each_entry_safe(pos, next, &release_probes, u.list) {
cds_list_del(&pos->u.list);
free(pos);
{
struct tracepoint_lib *pl, *iter;
- init_tracepoint();
+ lttng_ust_tp_init();
pl = (struct tracepoint_lib *) zmalloc(sizeof(struct tracepoint_lib));
if (!pl) {
DBG("just registered a tracepoints section from %p and having %d tracepoints",
tracepoints_start, tracepoints_count);
- if (ust_debug()) {
+ if (ust_err_debug_enabled()) {
int i;
for (i = 0; i < tracepoints_count; i++) {
"DIFFERENT addresses");
}
-void init_tracepoint(void)
+void lttng_ust_tp_init(void)
{
if (uatomic_xchg(&initialized, 1) == 1)
return;
- init_usterr();
+ ust_err_init();
check_weak_hidden();
}
-void exit_tracepoint(void)
+void lttng_ust_tp_exit(void)
{
initialized = 0;
}
{
return uatomic_read(&tracepoint_destructors_state);
}
-
-void lttng_ust_synchronize_trace(void)
-{
- lttng_ust_urcu_synchronize_rcu();
-}