projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Use negative value for error code of lttng_ust_ctl_duplicate_ust_object_data
[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 e48ef802c1cdbddc41aa9e49435e9e1b2d7f64fe..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);
@@
-31,25
+34,20
@@
end:
return;
}
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.042122 seconds
and
4
git commands to generate.