projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: disable some abi conflict tests on FreeBSD
[lttng-ust.git]
/
src
/
lib
/
lttng-ust
/
tracef.c
diff --git
a/src/lib/lttng-ust/tracef.c
b/src/lib/lttng-ust/tracef.c
index 3c4ce490511fa3630bb114e6b60d04c193a803be..c05c781199f8235a62972a3e8969dec5fccf5594 100644
(file)
--- a/
src/lib/lttng-ust/tracef.c
+++ b/
src/lib/lttng-ust/tracef.c
@@
-8,15
+8,18
@@
#include <stdio.h>
#include "common/macros.h"
#include <stdio.h>
#include "common/macros.h"
-#define TRACEPOINT_CREATE_PROBES
-#define TRACEPOINT_DEFINE
+/* 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
#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
__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);
{
char *msg;
const int len = vasprintf(&msg, fmt, ap);
@@
-24,32
+27,27
@@
void __lttng_ust_vtracef(const char *fmt, va_list ap)
/* len does not include the final \0 */
if (len < 0)
goto end;
/* len does not include the final \0 */
if (len < 0)
goto end;
-
_
_tracepoint_cb_lttng_ust_tracef___event(msg, len,
+
lttng_ust
_tracepoint_cb_lttng_ust_tracef___event(msg, len,
LTTNG_UST_CALLER_IP());
free(msg);
end:
return;
}
LTTNG_UST_CALLER_IP());
free(msg);
end:
return;
}
-/*
- * FIXME: We should include <lttng/tracef.h> 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)));
__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)));
__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);
{
va_list ap;
va_start(ap, fmt);
-
__lttng_ust
_vtracef(fmt, ap);
+
lttng_ust__
_vtracef(fmt, ap);
va_end(ap);
}
va_end(ap);
}
This page took
0.024699 seconds
and
4
git commands to generate.