projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add userspace time namespace context
[lttng-ust.git]
/
include
/
lttng
/
tracef.h
diff --git
a/include/lttng/tracef.h
b/include/lttng/tracef.h
index 0c59c9ae17c6b4b1cc80a8c93fb01e4bb4e29f0b..854ccdce52b48c20f7098b49af8cb20ebc4cb5e9 100644
(file)
--- a/
include/lttng/tracef.h
+++ b/
include/lttng/tracef.h
@@
-32,6
+32,9
@@
extern "C" {
extern
void _lttng_ust_tracef(const char *fmt, ...);
extern
void _lttng_ust_tracef(const char *fmt, ...);
+extern
+void _lttng_ust_vtracef(const char *fmt, va_list ap);
+
#define tracef(fmt, ...) \
do { \
LTTNG_STAP_PROBEV(tracepoint_lttng_ust_tracef, event, ## __VA_ARGS__); \
#define tracef(fmt, ...) \
do { \
LTTNG_STAP_PROBEV(tracepoint_lttng_ust_tracef, event, ## __VA_ARGS__); \
@@
-39,6
+42,11
@@
void _lttng_ust_tracef(const char *fmt, ...);
_lttng_ust_tracef(fmt, ## __VA_ARGS__); \
} while (0)
_lttng_ust_tracef(fmt, ## __VA_ARGS__); \
} while (0)
+#define vtracef(fmt, ap) \
+ do { \
+ if (caa_unlikely(__tracepoint_lttng_ust_tracef___event.state)) \
+ _lttng_ust_vtracef(fmt, ap); \
+ } while (0)
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
}
#endif
This page took
0.030152 seconds
and
4
git commands to generate.