[ltt-dev] SystemTAP support in tracepoints
Mathieu Desnoyers
mathieu.desnoyers at efficios.com
Tue Apr 12 14:48:35 EDT 2011
* Frank Ch. Eigler (fche at redhat.com) wrote:
>
> mathieu.desnoyers wrote:
>
> > [...]
> > Cool! I tweaked it a bit and came up with the following. Comments ?
>
> How about just:
>
>
> #define SDT_USE_VARIADIC
> #include <sys/sdt.h>
How should support systems that don't have sdt.h ? Is there a define we
could check ?
Mathieu
>
> #define tracepoint(name, args...) \
> do {
> STAP_PROBEV(name, name, __VA_ARGS__); \
> /* and whatever ust needs for itself */ \
> } while (0)
>
>
> - FChE
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
More information about the lttng-dev
mailing list