X-Git-Url: http://git.lttng.org/?p=ust.git;a=blobdiff_plain;f=libust-initializer.c;h=efe707e5672c752ef54bb57bcaf46e03c86c1e6e;hp=2ac56375a32d90ecc2b1463070db49945bd7a7e3;hb=HEAD;hpb=3c6eae02c4bd3cea00113ca9dbccf753113ffc6d diff --git a/libust-initializer.c b/libust-initializer.c index 2ac5637..efe707e 100644 --- a/libust-initializer.c +++ b/libust-initializer.c @@ -11,27 +11,6 @@ #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) -{ - int i; - trace_mark(ust, dummymark, MARK_NOARGS); - trace_ust_dummytp(i); - trace_ust_dummy_event(i); -} - -MARKER_LIB; +UST_MARKER_LIB; TRACEPOINT_LIB; -TRACE_EVENT_LIB; +TRACEPOINT_EVENT_LIB;