X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=libust-initializer.c;h=a7103389bf3f7611236c3ab94537b5aaf52cbdee;hb=68d96813ccbb41602f92b45e8a5f61dea7525c35;hp=7c474659e5702353a33e79126666bc979596a9a1;hpb=25123621e72daf757b53fe8b5f28130a98016988;p=ust.git diff --git a/libust-initializer.c b/libust-initializer.c index 7c47465..a710338 100644 --- a/libust-initializer.c +++ b/libust-initializer.c @@ -11,5 +11,26 @@ #include #include +/* FIXME: We have to define at least one trace_mark and + * one tracepoint here. If we don't, the __start... and + * __stop... symbols won't be defined and the constructors + * won't be compilable. We should find a linker trick to + * avoid this. + */ + +DECLARE_TRACE(ust_dummytp, TP_PROTO(int anint), TP_ARGS(anint)); +DEFINE_TRACE(ust_dummytp); + +#define CREATE_TRACE_POINTS +#include "libust-initializer.h" + +void dummy_libust_initializer_func(void) +{ + trace_mark(ust, dummymark, MARK_NOARGS); + trace_ust_dummytp(0); + trace_ust_dummy_event(0); +} + MARKER_LIB; TRACEPOINT_LIB; +TRACE_EVENT_LIB;