[ltt-dev] SystemTAP support in tracepoints

Frank Ch. Eigler fche at redhat.com
Tue Apr 12 14:45:17 EDT 2011


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>

#define tracepoint(name, args...)			\
do {
        STAP_PROBEV(name, name, __VA_ARGS__);           \ 
        /* and whatever ust needs for itself */         \
} while (0)


- FChE




More information about the lttng-dev mailing list