From mboxrd@z Thu Jan 1 00:00:00 1970 From: mathieu.desnoyers@efficios.com (Mathieu Desnoyers) Date: Tue, 12 Apr 2011 14:48:35 -0400 Subject: [ltt-dev] SystemTAP support in tracepoints In-Reply-To: References: <20110410174444.GA30466@Krystal> <4DA3704C.8010502@redhat.com> <4DA380D5.80608@redhat.com> <20110412183555.GB11056@Krystal> Message-ID: <20110412184835.GA11727@Krystal> * 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 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