assert(event->priv->registered == 0);
desc = event->priv->desc;
- ret = __tracepoint_probe_register_queue_release(desc->name,
+ ret = lttng_ust_tp_probe_register_queue_release(desc->name,
desc->probe_callback,
event, desc->signature);
WARN_ON_ONCE(ret);
assert(event->priv->registered == 1);
desc = event->priv->desc;
- ret = __tracepoint_probe_unregister_queue_release(desc->name,
+ ret = lttng_ust_tp_probe_unregister_queue_release(desc->name,
desc->probe_callback,
event);
WARN_ON_ONCE(ret);
_lttng_event_unregister(event_recorder_priv->parent.pub);
}
lttng_ust_urcu_synchronize_rcu(); /* Wait for in-flight events to complete */
- __tracepoint_probe_prune_release_queue();
+ lttng_ust_tp_probe_prune_release_queue();
cds_list_for_each_entry_safe(event_enabler, event_tmpenabler,
&session->priv->enablers_head, node)
lttng_event_enabler_destroy(event_enabler);
/* Wait for grace period. */
lttng_ust_urcu_synchronize_rcu();
/* Prune the unregistration queue. */
- __tracepoint_probe_prune_release_queue();
+ lttng_ust_tp_probe_prune_release_queue();
/*
* It is now safe to destroy the events and remove them from the event list
lttng_bytecode_filter_sync_state(runtime);
}
}
- __tracepoint_probe_prune_release_queue();
+ lttng_ust_tp_probe_prune_release_queue();
}
/* Support for event notifier is introduced by probe provider major version 2. */
lttng_bytecode_capture_sync_state(runtime);
}
}
- __tracepoint_probe_prune_release_queue();
+ lttng_ust_tp_probe_prune_release_queue();
}
/*
#include <lttng/tracepoint-types.h>
#include <lttng/ust-events.h>
+#include "ust-helper.h"
+
#define TRACE_DEFAULT TRACE_DEBUG_LINE
struct tracepoint_lib {
struct cds_list_head callsites;
};
-extern int tracepoint_probe_register_noupdate(const char *name,
+LTTNG_HIDDEN
+int tracepoint_probe_register_noupdate(const char *name,
void (*callback)(void), void *priv,
const char *signature);
-extern int tracepoint_probe_unregister_noupdate(const char *name,
+
+LTTNG_HIDDEN
+int tracepoint_probe_unregister_noupdate(const char *name,
void (*callback)(void), void *priv);
-extern void tracepoint_probe_update_all(void);
-extern int __tracepoint_probe_register_queue_release(const char *name,
+LTTNG_HIDDEN
+void tracepoint_probe_update_all(void);
+
+void *lttng_ust_tp_check_weak_hidden1(void);
+void *lttng_ust_tp_check_weak_hidden2(void);
+void *lttng_ust_tp_check_weak_hidden3(void);
+
+/*
+ * These symbols are ABI between liblttng-ust-tracepoint and liblttng-ust,
+ * which is why they are not hidden and not part of the public API.
+ */
+int lttng_ust_tp_probe_register_queue_release(const char *name,
void (*func)(void), void *data, const char *signature);
-extern int __tracepoint_probe_unregister_queue_release(const char *name,
+int lttng_ust_tp_probe_unregister_queue_release(const char *name,
void (*func)(void), void *data);
-extern void __tracepoint_probe_prune_release_queue(void);
+void lttng_ust_tp_probe_prune_release_queue(void);
void lttng_ust_tp_init(void);
void lttng_ust_tp_exit(void);
-void *lttng_ust_tp_check_weak_hidden1(void);
-void *lttng_ust_tp_check_weak_hidden2(void);
-void *lttng_ust_tp_check_weak_hidden3(void);
#endif /* _LTTNG_TRACEPOINT_INTERNAL_H */
/*
* Caller needs to invoke __tracepoint_probe_release_queue() after
- * calling __tracepoint_probe_register_queue_release() one or multiple
+ * calling lttng_ust_tp_probe_register_queue_release() one or multiple
* times to ensure it does not leak memory.
*/
-int __tracepoint_probe_register_queue_release(const char *name,
+int lttng_ust_tp_probe_register_queue_release(const char *name,
void (*probe)(void), void *data, const char *signature)
{
void *old;
/*
* Caller needs to invoke __tracepoint_probe_release_queue() after
- * calling __tracepoint_probe_unregister_queue_release() one or multiple
+ * calling lttng_ust_tp_probe_unregister_queue_release() one or multiple
* times to ensure it does not leak memory.
*/
-int __tracepoint_probe_unregister_queue_release(const char *name,
+int lttng_ust_tp_probe_unregister_queue_release(const char *name,
void (*probe)(void), void *data)
{
void *old;
return ret;
}
-void __tracepoint_probe_prune_release_queue(void)
+void lttng_ust_tp_probe_prune_release_queue(void)
{
CDS_LIST_HEAD(release_probes);
struct tp_probes *pos, *next;