From mboxrd@z Thu Jan 1 00:00:00 1970 From: compudj@krystal.dyndns.org (Mathieu Desnoyers) Date: Wed, 13 Apr 2011 11:38:09 -0400 Subject: [ltt-dev] SystemTAP support in tracepoints In-Reply-To: <1302635527.4057.9.camel@springer.wildebeest.org> References: <20110410174444.GA30466@Krystal> <4DA3704C.8010502@redhat.com> <4DA380D5.80608@redhat.com> <20110412183555.GB11056@Krystal> <20110412184835.GA11727@Krystal> <1302635527.4057.9.camel@springer.wildebeest.org> Message-ID: * Mark Wielaard (mjw at redhat.com) wrote: > 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 > > > > 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 at 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