X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Flib%2Flttng-ust%2Ftracef.c;h=c05c781199f8235a62972a3e8969dec5fccf5594;hb=6ba0c2b259f1f99ed3ce8ee2e58e90bc393b704e;hp=e1824e5c767148c4f36d0111e30447613adfdedf;hpb=660323e630e752c98bf6124d54ff99777d05ce7d;p=lttng-ust.git diff --git a/src/lib/lttng-ust/tracef.c b/src/lib/lttng-ust/tracef.c index e1824e5c..c05c7811 100644 --- a/src/lib/lttng-ust/tracef.c +++ b/src/lib/lttng-ust/tracef.c @@ -8,15 +8,18 @@ #include #include "common/macros.h" +/* The tracepoint definition is public, but the provider definition is hidden. */ +#define LTTNG_UST_TRACEPOINT_PROVIDER_HIDDEN_DEFINITION + #define LTTNG_UST_TRACEPOINT_CREATE_PROBES #define LTTNG_UST_TRACEPOINT_DEFINE #include "lttng-ust-tracef-provider.h" static inline -void __lttng_ust_vtracef(const char *fmt, va_list ap) +void lttng_ust___vtracef(const char *fmt, va_list ap) __attribute__((always_inline, format(printf, 1, 0))); static inline -void __lttng_ust_vtracef(const char *fmt, va_list ap) +void lttng_ust___vtracef(const char *fmt, va_list ap) { char *msg; const int len = vasprintf(&msg, fmt, ap); @@ -31,25 +34,20 @@ end: return; } -/* - * FIXME: We should include for the declarations here, but it - * fails with tracepoint magic above my paygrade. - */ - -void _lttng_ust_vtracef(const char *fmt, va_list ap) +void lttng_ust__vtracef(const char *fmt, va_list ap) __attribute__((format(printf, 1, 0))); -void _lttng_ust_vtracef(const char *fmt, va_list ap) +void lttng_ust__vtracef(const char *fmt, va_list ap) { - __lttng_ust_vtracef(fmt, ap); + lttng_ust___vtracef(fmt, ap); } -void _lttng_ust_tracef(const char *fmt, ...) +void lttng_ust__tracef(const char *fmt, ...) __attribute__((format(printf, 1, 2))); -void _lttng_ust_tracef(const char *fmt, ...) +void lttng_ust__tracef(const char *fmt, ...) { va_list ap; va_start(ap, fmt); - __lttng_ust_vtracef(fmt, ap); + lttng_ust___vtracef(fmt, ap); va_end(ap); }