X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Flttng%2Ftracef.h;h=0c59c9ae17c6b4b1cc80a8c93fb01e4bb4e29f0b;hb=85b4ad5854c5ca958482cfaec1b3875f7db72a67;hp=16a984b664166068759c832055bb699c6c09fb01;hpb=7dae71f2117c236a44bb78b023ad6100021707d8;p=lttng-ust.git diff --git a/include/lttng/tracef.h b/include/lttng/tracef.h index 16a984b6..0c59c9ae 100644 --- a/include/lttng/tracef.h +++ b/include/lttng/tracef.h @@ -25,14 +25,22 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + extern void _lttng_ust_tracef(const char *fmt, ...); #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) +#ifdef __cplusplus +} +#endif + #endif /* _LTTNG_UST_TRACEF_H */