Introduce vtracelog
[lttng-ust.git] / include / lttng / tracelog.h
index 4309d12e981eb524077677dd9f55c35154c37dc4..7aa8680987847ea2c76e9cae43c8aa05929dcc52 100644 (file)
@@ -59,6 +59,13 @@ TP_TRACELOG_CB_TEMPLATE(TRACE_DEBUG);
                                fmt, ## __VA_ARGS__); \
        } while (0)
 
+#define vtracelog(level, fmt, ap)                                      \
+       do {                                                            \
+               if (caa_unlikely(__tracepoint_lttng_ust_tracelog___##level.state)) \
+                       _lttng_ust_tracelog_##level(__FILE__, __LINE__, __func__, \
+                               fmt, ap); \
+       } while (0)
+
 #ifdef __cplusplus
 }
 #endif
This page took 0.023481 seconds and 4 git commands to generate.