Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (28 sloc) 1.15 KB
#ifndef DTRACE_H
#define DTRACE_H
#if defined(USE_DYNAMIC_TRACE)
#include "dtrace_probes.h"
#define DTRACE_ENABLED(name) \
PONY_##name##_ENABLED()
#define DTRACE0(name) \
PONY_##name()
#define DTRACE1(name, a0) \
PONY_##name(a0)
#define DTRACE2(name, a0, a1) \
PONY_##name((a0), (a1))
#define DTRACE3(name, a0, a1, a2) \
PONY_##name((a0), (a1), (a2))
#define DTRACE4(name, a0, a1, a2, a3) \
PONY_##name((a0), (a1), (a2), (a3))
#define DTRACE5(name, a0, a1, a2, a3, a4) \
PONY_##name((a0), (a1), (a2), (a3), (a4))
#else
#define DTRACE_ENABLED(name) 0
#define DTRACE0(name) do {} while (0)
#define DTRACE1(name, a0) do {} while (0)
#define DTRACE2(name, a0, a1) do {} while (0)
#define DTRACE3(name, a0, a1, a2) do {} while (0)
#define DTRACE4(name, a0, a1, a2, a3) do {} while (0)
#define DTRACE5(name, a0, a1, a2, a3, a4) do {} while (0)
#endif
#endif
You can’t perform that action at this time.