diff options
Diffstat (limited to 'libguile/whippet/api/gc-tracepoint.h')
-rw-r--r-- | libguile/whippet/api/gc-tracepoint.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libguile/whippet/api/gc-tracepoint.h b/libguile/whippet/api/gc-tracepoint.h new file mode 100644 index 000000000..598d0bc44 --- /dev/null +++ b/libguile/whippet/api/gc-tracepoint.h @@ -0,0 +1,17 @@ +#ifndef GC_TRACEPOINT_H +#define GC_TRACEPOINT_H + +#ifdef GC_TRACEPOINT_LTTNG + +#include "gc-lttng.h" + +#define GC_TRACEPOINT(...) \ + lttng_ust_tracepoint(whippet, __VA_ARGS__) + +#else // GC_TRACEPOINT_LTTNG + +#define GC_TRACEPOINT(...) do {} while (0) + +#endif // GC_TRACEPOINT_LTTNG + +#endif // GC_TRACEPOINT_H |