This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ltt-dev] SystemTAP support in tracepoints


* Mark Wielaard (mjw@redhat.com) wrote:
> On Tue, 2011-04-12 at 14:48 -0400, Mathieu Desnoyers wrote:
> > * Frank Ch. Eigler (fche@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.

Thanks for the hint, but adding this test in the UST build system don't
really make sense, because both systemtap and UST don't have dependency
on each other, and thus the build order between the two packages is not
fixed. So the detection should be done when the UST header is being
included into an application rather than at UST configuration time. And
I don't want to require all applications that want to use tracepoint to
use autoconf neither.

Mathieu


> 
> 
> _______________________________________________
> ltt-dev mailing list
> ltt-dev@lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> 

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]