mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-20 02:30:23 +02:00
Add build support for tracepoints via lttng-ust
This commit is contained in:
parent
b517464d7f
commit
cca54736a0
6 changed files with 126 additions and 5 deletions
17
api/gc-tracepoint.h
Normal file
17
api/gc-tracepoint.h
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue