[ltt-dev] SystemTAP support in tracepoints
Mark Wielaard
mjw at redhat.com
Tue Apr 12 15:12:07 EDT 2011
On Tue, 2011-04-12 at 14:48 -0400, Mathieu Desnoyers wrote:
> * Frank Ch. Eigler (fche at redhat.com) wrote:
> > 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 ?
I have just been using the following configure check:
AC_CHECK_HEADER([sys/sdt.h], [SDT_H_FOUND='yes'],
[SDT_H_FOUND='no';
AC_MSG_ERROR([systemtap support needs sys/sdt.h header])])
Which you can adapt to your needs with/without error message, including
an test to see if it fully works for your environment.
More information about the lttng-dev
mailing list