X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=include%2Flttng%2Ftracelog.h;h=7aa8680987847ea2c76e9cae43c8aa05929dcc52;hb=809b929460a19e790b0d4281753b3dd3fdd073a3;hp=4309d12e981eb524077677dd9f55c35154c37dc4;hpb=afeea86ff5c59e77ccd0684e8685220da963ad21;p=lttng-ust.git diff --git a/include/lttng/tracelog.h b/include/lttng/tracelog.h index 4309d12e..7aa86809 100644 --- a/include/lttng/tracelog.h +++ b/include/lttng/tracelog.h @@ -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