Introduce vtracef
[lttng-ust.git] / include / lttng / tracef.h
index 16a984b664166068759c832055bb699c6c09fb01..854ccdce52b48c20f7098b49af8cb20ebc4cb5e9 100644 (file)
 
 #include <lttng/lttng-ust-tracef.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 extern
 void _lttng_ust_tracef(const char *fmt, ...);
 
+extern
+void _lttng_ust_vtracef(const char *fmt, va_list ap);
+
 #define tracef(fmt, ...)                                               \
        do {                                                            \
-               STAP_PROBEV(tracepoint_lttng_ust_tracef, event, ## __VA_ARGS__); \
+               LTTNG_STAP_PROBEV(tracepoint_lttng_ust_tracef, event, ## __VA_ARGS__); \
                if (caa_unlikely(__tracepoint_lttng_ust_tracef___event.state)) \
                        _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
+
 #endif /* _LTTNG_UST_TRACEF_H */
This page took 0.024681 seconds and 4 git commands to generate.