X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust%2Ftracepoint-internal.h;h=26473b333b95de83d428de38bd988f2f3059d573;hb=14b6f89117234871ef9f750c4d282975397e30b7;hp=15661652b000adc2cde3588105b8f37a6857167f;hpb=c0c0989ab70574e09b2f7e8b48c2da6af664a849;p=lttng-ust.git diff --git a/liblttng-ust/tracepoint-internal.h b/liblttng-ust/tracepoint-internal.h index 15661652..26473b33 100644 --- a/liblttng-ust/tracepoint-internal.h +++ b/liblttng-ust/tracepoint-internal.h @@ -20,34 +20,40 @@ struct tracepoint_lib { struct cds_list_head callsites; }; -extern int tracepoint_probe_register_noupdate(const char *name, +__attribute__((visibility("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, - void (*callback)(void), void *priv); -extern void tracepoint_probe_update_all(void); -extern int __tracepoint_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, - void (*func)(void), void *data); -extern void __tracepoint_probe_prune_release_queue(void); -void lttng_ust_synchronize_trace(void); +__attribute__((visibility("hidden"))) +int tracepoint_probe_unregister_noupdate(const char *name, + void (*callback)(void), void *priv); -/* - * call after disconnection of last probe implemented within a - * shared object before unmapping the library that contains the probe. - */ -static inline void tracepoint_synchronize_unregister(void) -{ - lttng_ust_synchronize_trace(); -} +__attribute__((visibility("hidden"))) +void tracepoint_probe_update_all(void); -extern void init_tracepoint(void); -extern void exit_tracepoint(void); +__attribute__((visibility("hidden"))) void *lttng_ust_tp_check_weak_hidden1(void); + +__attribute__((visibility("hidden"))) void *lttng_ust_tp_check_weak_hidden2(void); + +__attribute__((visibility("hidden"))) 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); +int lttng_ust_tp_probe_unregister_queue_release(const char *name, + void (*func)(void), void *data); +void lttng_ust_tp_probe_prune_release_queue(void); + +void lttng_ust_tp_init(void); +void lttng_ust_tp_exit(void); + + #endif /* _LTTNG_TRACEPOINT_INTERNAL_H */